DGS framework works same for all HTTP Methods like PUT, DELETE, PERGE etc #1250
AshutoshDas07
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently I developed a GraphQL API using DGS and Java Spring. I used @DgsQuery for my API. I found that the request PayLoad works exactly the same way for all types of HTTP Methods like PUT, DELETE, POST, GET etc. I want my API to work only for POST Method and throw an error of "Bad Request/Method Not Allowed" whenever other HTTP method is used.
Java Spring Pseudo Code
Am I missing something here while making the datafetcher ? Or Dgs has been implemented this way?
Beta Was this translation helpful? Give feedback.
All reactions