Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Unexpected error occurring on signup in the examples #572

Description

@noobling

Current behavior
When following the read me for example located here: https://github.com/prisma/graphcool-framework/tree/master/examples/0.x/full-example and trying to execute this code

mutation signup {
  signupUser(
    email: "nilan@graph.cool"
    password: "password"
  ) {
    id
    token
  }
}

An unexpected error occurs upon further inspection of the log this is returned

{ Error: Field 'createUser' argument 'name' of type 'String!' is required but not provided. (line 3, column 7):\n      createUser(\n      ^: {\"response\":{\"data\":null,\"errors\":[{\"message\":\"Field 'createUser' argument 'name' of type 'String!' is required but not provided. (line 3, column 7):\\n      createUser(\\n      ^\",\"locations\":[{\"line\":3,\"column\":7}]}],\"status\":200},\"request\":{\"query\":\"\\n    mutation createGraphcoolUser($email: String!, $password: String!) {\\n      createUser(\\n        email: $email,\\n        password: $password\\n      ) {\\n        id\\n      }\\n   }\\n  \",\"variables\":{\"email\":\"nilan@graph.cool\",\"password\":\"$2a$10$JNnPjn0WMlMjaTSZZorzbudQPAwauMA.U/CMEBAyFfzCInvudTxXK\"}}}\n    at GraphQLClient.<anonymous> 

Reproduction
Follow the read me here: https://github.com/prisma/graphcool-framework/tree/master/examples/0.x/full-example then try to execute this code

mutation signup {
  signupUser(
    email: "nilan@graph.cool"
    password: "password"
  ) {
    id
    token
  }
}

Expected behavior?

id and token is returned instead of an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions