Mahmoud MH
12/16/2017, 3:59 PMMahmoud MH
12/16/2017, 3:59 PMMahmoud MH
12/16/2017, 4:00 PMnilan
12/16/2017, 4:00 PMMahmoud MH
12/16/2017, 4:00 PMMahmoud MH
12/16/2017, 4:00 PMMahmoud MH
12/16/2017, 4:01 PMDavid Yin
12/16/2017, 4:14 PMrror: data should NOT have additional properties
at Output.error (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/src/Output/index.ts:164:15)
at Object.<anonymous> (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/src/ProjectDefinition/yaml.ts:43:9)
at step (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js:32:23)
at Object.next (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js:13:53)
at fulfilled (/Users/davidyin/.nvm/versions/node/v8.9.1/lib/node_modules/graphcool/node_modules/graphcool-cli-engine/dist/ProjectDefinition/yaml.js:4:58)
at <anonymous>
Exiting with code: 1
David Yin
12/16/2017, 4:14 PMtheory
12/16/2017, 6:32 PMtype Mutation {
createUser(name: String!, authProvider: AuthProviderSignupData!): User
}
###########
## Inputs
###########
input AuthProviderEmail {
email: String!
password: String!
}
input AuthProviderSignupData {
email: AuthProviderEmail
}
theory
12/16/2017, 6:33 PMmutation CreateUser {
createUser(name: "tester2", authProvider: {email: {email: "<mailto:test@test.com|test@test.com>", password: "password"}}) {
id
name
}
}
Vinnie
12/16/2017, 6:47 PMadamibaker
12/16/2017, 11:33 PMckelley
12/17/2017, 8:31 AMpreetb123
12/17/2017, 11:48 AMLink
as in <https://www.howtographql.com/react-apollo/8-subscriptions/>
preetb123
12/17/2017, 11:48 AMTypeError: Cannot read property 'node' of undefined
at Object.updateQuery (LinkList.js:47)
at ObservableQuery.js:188
at ObservableQuery.js:256
at tryFunctionOrLogError (errorHandling.js:3)
at ObservableQuery../node_modules/apollo-client/core/ObservableQuery.js.ObservableQuery.updateQuery (ObservableQuery.js:255)
at Object.next (ObservableQuery.js:186)
at SubscriptionObserver.next (zen-observable.js:154)
at QueryManager.js:581
at Array.forEach (<anonymous>)
at Object.next (QueryManager.js:579)
at Object.handler (client.js:105)
at SubscriptionClient../node_modules/subscriptions-transport-ws/dist/client.js.SubscriptionClient.processReceivedData (client.js:420)
at WebSocket.client.onmessage (client.js:374)
preetb123
12/17/2017, 11:48 AMupdateQuery
updateQuery: (previous, { subscriptionData }) => {
console.log(subscriptionData);
const newAllLinks = [
subscriptionData.Link.node,
...previous.allLinks
]
const result = {
...previous,
allLinks: newAllLinks
}
return result
}
preetb123
12/17/2017, 12:14 PMrajit
12/17/2017, 3:14 PMgc deploy
, which involved a new field with a @migrationValue. I then created a new entry and ran gc deploy
. The @migrationValue then got used again, overwriting the value I'd set on that new entry.
To hopefully better explain:
User [fields]:
ā id
then I add a verified: boolean
field with @migrationValue(value: true)
. I run gc deploy
and then create a new user with verified: false
.
New user:
id: blah
verified: false
Then I run gc deploy
again and when I fetch all users I see:
id: blah
verified: true
Are @migrationValue's intended to overwrite values everytime they're run? This implies to me I'll have to remove all of my @migrationValue directives after running it once.donald
12/17/2017, 6:58 PMdonald
12/17/2017, 6:58 PMdonald
12/17/2017, 7:04 PMdonald
12/17/2017, 7:04 PMilluday
12/17/2017, 9:37 PMVictor (ZeroSpace)
12/17/2017, 10:07 PMVictor (ZeroSpace)
12/17/2017, 10:08 PMLuke Diebold
12/18/2017, 3:00 AMtopaz
12/18/2017, 3:54 AMSteven Sacks
12/18/2017, 4:32 AMdonedgardo
12/18/2017, 5:42 AM