You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
@truecastdesign Sorry for the delay, but the expected result should not be null. It should be a result containing a descriptive error. I'll have to look into this when I have time.
Is there already or can you folks please add a way for the graphql method to return errors when a query does not match the schema?
Example
Schema:
type Query {
category(id: [Int]!): [Category] <- expects and array of ids
}
Query:
{
category(id:2) {
id
title
}
}
Result: null
Wanted result:
{
"error": "Variable id is of type Int, expects array of Ints"
}
Thanks
The text was updated successfully, but these errors were encountered: