anu
06/29/2017, 6:17 PMget-graphql-schema
to generate a schema.graphql
for my project. The command executed well without error but I didn't see any schema.graphql
file generated.nikolasburk
get-graphql-schema <https://api.graph.cool/relay/v1/cj4hfp3hs4y0m01305nyj3neo> > ./schema.graphql
nikolasburk
>
will write the output into the file called schema.graphql
anu
06/29/2017, 6:26 PMWatchman: Watchman was not found in PATH. See <https://facebook.github.io/watchman/docs/install.html> for installation instructions
anu
06/29/2017, 6:28 PMrelay-compiler
is trying to compile my test files also. I will sort that out. Thanks for being helpfulphil
06/29/2017, 7:53 PMcategories
) that are generated within the updateXXX
mutation method:
mutation addTeamCategory($teamId:ID!, $orgId:ID!, $key:String!, $value:String!) {
updateTeam(
id:$teamId
orgId: $orgId
categories:{
key: $key
value: $value
}
)
{
id
}
}
the example above creates a single item within the categories
relationship. How would I (could I?) go about adding/generating multiple categories in this one mutation query?
Thanks!bobbyt
06/29/2017, 9:49 PMallUsers()
, then for each User, based on its timestamp field (type of DateTime
) call a mutation that updates a value in another field for that User (i.e., unixTimestamp of type Int
). Thanks!martin
06/29/2017, 9:59 PMconst sendNotification = gql`
mutation($notificationId: ID!) {
sendNotification: updateNotifications(id: $notificationId, complete: true) {
id
}
}
`
class ReactComponent extends React.Component {
...
}
graphql(sendNotification, { name: 'sendNotification' })(ReactComponent)
Is it possible to somehow call the sendNotification
mutation in an external function to where it’s not tied to the current component and called via this.props
?patstrz
06/29/2017, 11:05 PMmutation createChallengeAndScore{
createChallenge(title:"title"){
id
}
createScore(value:50, scorecardId:"cj4g9eonx7pyx0160shz7xlbp" ){
value
}
}
?agartha
06/29/2017, 11:15 PMjoshmadewell
06/30/2017, 2:52 AMcreateUser
mutation and I’m required to get the id
back I fail
createUser(
authProvider: {
email: {
email: $email,
password: $password
},
},
firstName: $firstName,
lastName: $lastName
) {
id
}
)
I really don’t want to expose the User to everyone
because if I understand correctly, that means anyone could query my data store for all my users…?joshmadewell
06/30/2017, 2:52 AMmarcusstenbeck
06/30/2017, 6:03 AMemail
field, right? If that’s the case I think you should write that somewhere. Or maybe I just did some funky stuff 🙂davutokan
06/30/2017, 6:57 AMsamuell
06/30/2017, 8:12 AMsamuell
06/30/2017, 8:16 AMsamuell
06/30/2017, 8:16 AMyukonit
06/30/2017, 8:30 AMpicosam
06/30/2017, 8:35 AMdataIdFromObject
to provide an ID
for the store objects: http://dev.apollodata.com/angular2/cache-updates.html#dataIdFromObject — anyone actually does this in their app using Graph.cool? I would suppose this maps perfectly well since Graph.cool imposes a unique ID
for each Type
defined?picosam
06/30/2017, 8:40 AMgokaygurcan
06/30/2017, 8:57 AMnet::ERR_SSL_PROTOCOL_ERROR
I can't signup, login, or use any of the examples such as http://demo.learnrelay.org/gokaygurcan
06/30/2017, 8:58 AMjakehow
06/30/2017, 12:53 PMchris_r
06/30/2017, 3:29 PMgmuresan
06/30/2017, 3:41 PMnilan
06/30/2017, 4:53 PMilkkavesa
06/30/2017, 5:08 PMRutvik Patel
06/30/2017, 5:13 PMpeterp
06/30/2017, 8:03 PMpeterp
06/30/2017, 8:03 PM