Closed Raynos closed 2 years ago
The DB might not be corrupted https://github.com/nodesource/ncm2-api/issues/253
We are getting nulls back because thats how graphql works when it has an error in a sub document. We are just not reporting errors in the CLI.
We can add error reporting and look at the corrupted module that was broken and see what the error was.
GraphQL will return
{ data, errors }
and we are currently ignoring errors.GraphQL will always return 200 with
{ data, errors }
instead of 200data
or 500errors
.GraphQL only returns a 400 if you send it invalid syntax in the HTTP POST body.