Allow GET method for the Payload /api/graphql GraphQL route to allow using caceheable responses
#16170
MurzNN
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found out that Payload CMS surprisingly does not accept GraphQL requests with the
GETmethod, they work only withPOSTmethod. WithGET- Payload produces a "405 Method Not Allowed" error on the/api/graphqlendpoint.Many GraphQL client libraries switched to use
GETfor simple GraphQL queries by default, to receive caching and other performance benefits.So, can we just simply allow the
GETmethod in the/api/graphqlendpoint to accept GraphQL requests? Or will this require some other changes on the backend?Beta Was this translation helpful? Give feedback.
All reactions