Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possiblity the docs are out of date? #83

Closed
nikolasleblanc opened this issue Jan 17, 2016 · 3 comments
Closed

Possiblity the docs are out of date? #83

nikolasleblanc opened this issue Jan 17, 2016 · 3 comments

Comments

@nikolasleblanc
Copy link

Have tried running the demo, and this query, as described in the docs, from the local graphql server:

mutation addX {
  addUser(input: {name: "X", age: 11, clientMutationId: "1"}) {
    id
    name
  }
}

returns an error:

{
  "errors": [
    {
      "message": "Cannot query field \"id\" on \"addUserPayload\"."
    },
    {
      "message": "Cannot query field \"name\" on \"addUserPayload\"."
    }
  ]
}

while this query works fine:

mutation addX {
  addUser(input: {name: "X", age: 11, clientMutationId: "1"}) {
    changedUserEdge {
      node {
        id
        name
      }
    }
  }
}

So I wonder if the docs may be out of sync?

@tothandras
Copy link
Contributor

Thanks for the catch, it seems to be out of date! I'll update it shortly.

On Sun, Jan 17, 2016, 18:53 Nikolas LeBlanc notifications@github.com
wrote:

Have tried running the demo, and this query, as described in the docs,
from the local graphql server:

mutation addX {
addUser(input: {name: "X", age: 11, clientMutationId: "1"}) {
id
name
}
}

returns an error:

{
"errors": [
{
"message": "Cannot query field "id" on "addUserPayload"."
},
{
"message": "Cannot query field "name" on "addUserPayload"."
}
]
}

while this query works fine:

mutation addX {
addUser(input: {name: "X", age: 11, clientMutationId: "1"}) {
changedUserEdge {
node {
name
}
}
}
}

So I wonder if the docs may be out of sync?


Reply to this email directly or view it on GitHub
#83.

@tothandras
Copy link
Contributor

Fixed. ;) Thank you for opening the issue!

@nikolasleblanc
Copy link
Author

No problem, thanks for addressing the issue so quickly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants