Skip to content

feat: add degraphql plugin#8959

Merged
spacewander merged 2 commits intoapache:masterfrom
spacewander:degr
Mar 1, 2023
Merged

feat: add degraphql plugin#8959
spacewander merged 2 commits intoapache:masterfrom
spacewander:degr

Conversation

@spacewander
Copy link
Copy Markdown
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>
@spacewander spacewander marked this pull request as ready for review February 28, 2023 09:13
required = {"query"},
}

local plugin_name = "degraphql"
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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