zth
01/13/2017, 9:06 PMzth
01/13/2017, 9:06 PMzth
01/13/2017, 9:07 PMzth
01/13/2017, 9:07 PMnilan
01/13/2017, 9:39 PMschickling
01/13/2017, 10:01 PMrafgraph
01/13/2017, 10:52 PMnilan
01/13/2017, 10:59 PMmonkeybonkey
01/13/2017, 11:11 PMnilan
01/13/2017, 11:12 PMmonkeybonkey
01/13/2017, 11:43 PMnilan
01/14/2017, 12:28 AMnilan
01/14/2017, 11:50 AMpmcgarry
01/14/2017, 3:38 PMsorenbs
nilan
01/14/2017, 4:09 PMgopidon
01/14/2017, 6:24 PMschickling
01/14/2017, 6:25 PMschickling
01/14/2017, 6:25 PMgopidon
01/14/2017, 6:31 PMschickling
01/14/2017, 6:34 PMgopidon
01/14/2017, 6:35 PMschickling
01/14/2017, 6:35 PMgopidon
01/14/2017, 6:35 PMmartin
01/15/2017, 10:47 PMReact-Apollo-Email
authentication example, but am receiving this error:
`console log`:
Uncaught TypeError: Cannot read property 'kind' of undefined
at Object.parser (parser.js:11)
at graphql (graphql.js:67)
at Object.<anonymous> (Register.js:73)
at __webpack_require__ (bootstrap 165d82b…:555)
at fn (bootstrap 165d82b…:86)
at Object.<anonymous> (index.js:4)
at __webpack_require__ (bootstrap 165d82b…:555)
at fn (bootstrap 165d82b…:86)
at Object.<anonymous> (index.js:6)
at __webpack_require__ (bootstrap 165d82b…:555)
In `parser.js`:
function parser(document) {
var variables, type, name;
invariant((!!document || !!document.kind), "Argument of " + document + " passed to parser was not a valid GraphQL DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document");
…
Code used inside the client:
import gql from 'graphql-tag'
const createUser = gql`
mutation ($email: String!, $password: String!, $firstName: String!, $lastName: String!) {
createUser(authProvider: {email: {email: $email, password: $password}}, firstName: $firstName, lastName: $lastName) {
id
}
}
`
const signinUser = gql`
mutation ($email: String!, $password: String!) {
signinUser(email: {email: $email, password: $password}) {
token
}
}
`
const userQuery = gql`
query {
user {
id
}
}
`
nilan
01/15/2017, 11:16 PMmartin
01/15/2017, 11:37 PMapollo-client
0.7.3
react-apollo
0.8.1
Have been following these instructions: https://www.graph.cool/docs/tutorials/react-apollo-email-oopheesaj9
And what do you mean by “have you injected your project endpoint to a project with the required schema?”
I have included the project link both in the index.js
file
const networkInterface = createNetworkInterface({ uri: '…’ })
and in package.json
"graphql": {
"request": {
"url": "..."
}
}
nilan
01/15/2017, 11:42 PMmartin
01/15/2017, 11:42 PMmartin
01/16/2017, 2:58 AMapollo-client
0.7.3
graphql-tag
1.2.3
react-apollo
0.8.1