Closed Bockit closed 8 years ago
Thanks for the feedback. Have pushed the changes. I was trying to avoid having to handle checking the query wasn't empty in a second place, but perhaps too much an abuse of pattern matching.
Still have to test.
@joshprice: Added the tests for the application/graphql
handler.
Looks good, thanks!
What does this PR do?
Handles request which send the
Content-Type: application/graphql
header and the raw request body is the query.How should this be manually tested?
Content-Type: application/graphql
header and the query in the request body.E.g. (postman, headers tab sets the content-type):
Any background context you want to provide?
I tried doing pattern matching with an
in
guard clause:But you get this error:
So this works, but it may be time to rethink how the pattern matching works here a little bit.