Why the inconsistency? Wouldn't it be better to al...
# prisma-whats-new
l
Why the inconsistency? Wouldn't it be better to always return a JSON object with a data property and an errors property?
n
@lastmjs in what cases do we return
error
? Does that involve a function?
l
Syntax errors
For example, run this query in the playground:
Copy code
query {
  hello {
}
n
https://facebook.github.io/graphql/#sec-Response-Format says that
data
need not be present if there was a syntax error. I'm still not sure about
error
vs.
errors
, let me investigate
👍 1