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

Add extensions and path to error.java #61

Closed
bpillai opened this issue Dec 19, 2018 · 1 comment
Closed

Add extensions and path to error.java #61

bpillai opened this issue Dec 19, 2018 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@bpillai
Copy link
Contributor

bpillai commented Dec 19, 2018

According to the graph ql spec , the error object follows the following format .
https://facebook.github.io/graphql/June2018/#sec-Errors

{
"errors": [
{
"message": "Name for character with ID 1002 could not be fetched.",
"locations": [ { "line": 6, "column": 7 } ],
"path": [ "hero", "heroFriends", 1, "name" ],
"extensions": {
"code": "CAN_NOT_FETCH_BY_ID",
"timestamp": "Fri Feb 9 14:33:09 UTC 2018"
}
}
]
}

@chemdrew
Copy link
Contributor

Hi @bpillai closing this as a duplicate of #22
Unfortunately I have not had the time to implement this yet but would be more than happy to accept a PR for it!

@chemdrew chemdrew added the duplicate This issue or pull request already exists label Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants