aroman
07/18/2018, 3:23 PMgateway is hitting another `graphql-server`(microservice). In turn that graphql-server does another mutation to the database.
I am hitting from my gateway:
createReport(input: ReportInput!): JSON!
input ReportInput {
queryLimit: Int!
businessEntityId: Int!
}
This works fine:
The graphql Server I’m hitting triggers this mutation:
createReport(input: JasperInput!): Report
My issue is when using playground: I get this back:
{
"data": null,
"errors": [
{
"message": "Cannot return null for non-nullable field Mutation.createReport.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"createReport"
]
}
]
}lawjolla
07/18/2018, 3:54 PMJSON type definition?aroman
07/18/2018, 4:05 PMscalar JSONaroman
07/18/2018, 4:05 PMaroman
07/18/2018, 4:05 PMaroman
07/18/2018, 4:05 PMlawjolla
07/18/2018, 4:15 PMcreateReport resolver returns is not matching the JSON type.aroman
07/18/2018, 5:10 PM