Tag: apollo-server
-
Modifying Response of Graphql before sent out
2 I am looking for a way to modify the response object of a graphql query or mutation before it gets sent out. Basically in addition the the data object, I want to have extra fields like code and message. At the moment I am solving this by adding the fields directly into my GQL…
-
How do I add a description to a field in “GraphQL schema language”
85 I have a graphql schema, a fragment of which looks like this: type User { username: String! password: String! } In graphiql, there is a description field, but it always says “self-descriptive”. How do I add descriptions to the schema? javascript graphql apollo-server Share Follow asked Oct 10, 2016 at 16:37 derekdreeryderekdreery 3,80044 gold…