cullan
01/23/2017, 4:36 PMarthurtayrac
01/23/2017, 4:52 PMschickling
01/23/2017, 4:54 PMcodepreneur
01/23/2017, 5:14 PMcodepreneur
01/23/2017, 5:14 PMthisismissem
01/23/2017, 5:17 PMthisismissem
01/23/2017, 5:17 PMthisismissem
01/23/2017, 5:18 PMcodepreneur
01/23/2017, 5:20 PMcullan
01/23/2017, 5:21 PMsorenbs
cullan
01/23/2017, 5:37 PMschickling
01/23/2017, 6:56 PMjonas28
01/23/2017, 6:56 PMcodepreneur
01/23/2017, 7:06 PMschickling
01/23/2017, 7:07 PMcodepreneur
01/23/2017, 7:07 PMcodepreneur
01/23/2017, 7:07 PMcodepreneur
01/23/2017, 7:07 PMnicklewis
01/23/2017, 8:03 PMsorenbs
tychota
01/23/2017, 8:21 PMcharlieroth
01/23/2017, 9:51 PMconst LoginUserMutation = gql
mutation signinUser(email: {$email: String!, $password: String!}){
signinUser(email: {email: $email, password: $password }) {
token
}
}
Except when ever I run my app I get the following error:
Uncaught Error: Syntax Error GraphQL (2:23) Expected $, found Name "email"
1:
2: mutation signinUser(email: {$email: String!, $password: String!}){
^
3: signinUser(email: {email: $email, password: $password }) {
I understand that it wants a $email on line 2 but then how does the mutation know which $email
I am referring to on line 3?nilan
01/23/2017, 9:53 PM$email
variable to something else please? curious to see if that fixes itnilan
01/23/2017, 9:53 PMcharlieroth
01/23/2017, 9:53 PMcharlieroth
01/23/2017, 9:53 PMnilan
01/23/2017, 9:54 PMnilan
01/23/2017, 9:54 PMemail
, yepcharlieroth
01/23/2017, 9:54 PM