-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
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" |
There was a problem hiding this comment.
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
) 🤔
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Thanks for @tzssangglass to provide the initial implementation.
Signed-off-by: spacewander spacewanderlzx@gmail.com
Description
Fixes #8787
Checklist