Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add degraphql plugin #8959

Merged
merged 2 commits into from
Mar 1, 2023
Merged

feat: add degraphql plugin #8959

merged 2 commits into from
Mar 1, 2023

Conversation

spacewander
Copy link
Member

@spacewander spacewander commented Feb 28, 2023

Thanks for @tzssangglass to provide the initial implementation.
Signed-off-by: spacewander spacewanderlzx@gmail.com

Description

Fixes #8787

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Thanks for @tzssangglass to provide the inital implementation.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
required = {"query"},
}

local plugin_name = "degraphql"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a small question, should we call it graphql-transcode according to the grpc class plugin specification (rest2grpc => grpc-transcode) 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We borrow the name degraphql from Kong. What do you think about it, @juzhiyuan?

Copy link
Member

@juzhiyuan juzhiyuan Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my understanding, de means decode, so degraphql means decode GraphQL. I think this name works because it does not belong to Kong only :)

Or graphql-transcode?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, it would be better to keep the original name, so we don't need to modify this PR and other things which are not public.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@spacewander spacewander merged commit ab64aed into apache:master Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: degraphql plugin proposal and simple implement
4 participants