Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Error Reporting #346

Closed
truecastdesign opened this issue May 30, 2019 · 2 comments
Closed

Error Reporting #346

truecastdesign opened this issue May 30, 2019 · 2 comments
Labels
bug Something isn't working execution Related to execution

Comments

@truecastdesign
Copy link

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

@crisu83
Copy link
Contributor

crisu83 commented Jul 26, 2019

@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.

@crisu83 crisu83 added bug Something isn't working execution Related to execution labels Jul 26, 2019
@hugovk
Copy link
Contributor

hugovk commented Mar 3, 2023

Thanks for the report, however we're going to archive this repo soon as we're no longer maintaining it: #359

@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working execution Related to execution
Projects
None yet
Development

No branches or pull requests

3 participants