andreas / ocaml-graphql-server

GraphQL servers in OCaml
MIT License
624 stars 60 forks source link

Add the `errors` key first in the response JSON #131

Closed anmonteiro closed 5 years ago

anmonteiro commented 5 years ago

According to the Response Formatsection of the GraphQL Spec:

When errors is present in the response, it may be helpful for it to appear first when serialized to make it more clear when errors are present in a response during debugging.

refs #119

andreas commented 5 years ago

Thanks, nice improvement! 👍