amandoabreu
08/25/2017, 2:07 PMdno
08/25/2017, 2:08 PMdno
08/25/2017, 2:09 PMamandoabreu
08/25/2017, 2:09 PMmike.johnson
08/25/2017, 3:55 PMcorasan
08/25/2017, 11:52 PMcorasan
08/25/2017, 11:52 PMcorasan
08/25/2017, 11:54 PMcorasan
08/25/2017, 11:58 PMuser
08/26/2017, 12:01 AMCreateUserMutation
as a named import in Signup.js
, but it's a default export in CreateUserMutation.js
. If you change line 3 in Signup.js
to: import CreateUserMutation from '../../mutations/CreateUserMutation'
does it work?aurnik
08/26/2017, 12:03 AMjqemprendedorve
08/26/2017, 5:39 AMmwildehahn
08/26/2017, 7:10 AMgraphcool-lib
library and wrote: export async function generateUserToken(userId) {
const mutation = `mutation {
generateUserToken(input: {
pat: "${process.env.GRAPHQL_PAT}",
projectId: "${process.env.GRAPHQL_PROJECT_ID}",
userId: "${userId}",
modelName: "User"
}) {
token
}
}`;
but am getting this error whenever that runs: Cannot query field 'generateUserToken' on type 'Mutation'. (line 2, column 5): generateUserToken(input: { ^: {"response":{"data":null,"errors":[{"message":"Cannot query field 'generateUserToken' on type 'Mutation'. (line 2, column 5):\n generateUserToken(input: {\n ^","locations":[{"line":2,"column":5}]}],"status":200},
matty
08/26/2017, 7:51 AMmatty
08/26/2017, 7:52 AMmatty
08/26/2017, 8:01 AMmatty
08/26/2017, 8:17 AMcorasan
08/26/2017, 8:19 AMpanzupa
08/26/2017, 8:34 AMfilter
had valuepanzupa
08/26/2017, 8:35 AMpanzupa
08/26/2017, 8:35 AMcorasan
08/26/2017, 3:16 PMAuthorization
header. After doing the siginUser
mutation I get the token in the payload but how can I pass that token to the Authorization
header in the relay environment?nilan
08/26/2017, 4:35 PMeraldo
08/26/2017, 4:37 PMeder
08/26/2017, 4:43 PMDaniel K.
08/26/2017, 4:48 PMajmakhl
08/26/2017, 7:12 PMmutation($id: ID!) {
deleteFile(id:$id) {
id
}
}
I did type the id in query variablescj
08/26/2017, 7:13 PMmatthewhager
08/26/2017, 8:55 PMmatthewhager
08/26/2017, 9:14 PM