anton-b
03/14/2018, 10:55 PMYour token is invalid. It might have expired or you might be using a token from a different project
- error.
I have run the prisma token
command, but what exactly do I need to do with it?
I have my graphql server running in it's own project and the database service in another.danielvdm
03/14/2018, 11:17 PMdanielvdm
03/14/2018, 11:17 PMdanielvdm
03/14/2018, 11:17 PMdanielvdm
03/14/2018, 11:17 PMkieve
03/14/2018, 11:17 PMdanielvdm
03/14/2018, 11:18 PMJonathan Romano
03/15/2018, 12:30 AMglen
03/15/2018, 1:28 AMrcy
03/15/2018, 5:49 AM_QueryMeta
something that exists in prisma? I am porting over some work from graphcool framework and came across this used to get a count of number of records in a model. I can't find anything in my generated schema in prisma though.Antonio
03/15/2018, 8:54 AMAntonio
03/15/2018, 8:55 AMsakhmedbayev
03/15/2018, 9:14 AMgraphcool add-template messaging/mailgun
with Prisma?Akshay
03/15/2018, 9:47 AMmichieldewilde
03/15/2018, 11:28 AMpiscis
03/15/2018, 11:47 AMjohhansantana
03/15/2018, 2:43 PMVendicto
03/15/2018, 2:44 PMexport const UPDATE_USER_MUTATION = gql`
mutation updateUser(
$id : ID!,
$fullName: String!,
$username: String!,
$avatarId: ID!,
$email: String!
){
updateUser(
id: $id,
fullName: $fullName,
username: $username,
avatarId: $avatarId,
email: $email
){
id
fullName
username
avatar{
url
}
email
age
}
}
`;
And when I update fields without file ID, I got an error
GraphQL error: Variable '$avatarId' expected value of type 'ID!' but value is undefined. Reason: Expected non-null value, found null. (line 1, column 71): mutation updateUser($id: ID!, $fullName: String!, $username: String!, $avatarId: ID!, $email: String!)peter
03/15/2018, 3:01 PMgraphql-playground
and instead explicitly use regular graphiql
?manticarodrigo
03/15/2018, 3:44 PMorderBy
filter in the constructor I get a 400 response. In my prisma schema it doesn’t have a constructor because it just returns all posts. How can I achieve this orderBy
filter?picosam
03/15/2018, 3:45 PMgraphql-yoga 1.6.0
I’m suddenly getting this when starting the server:
Error: SchemaDirectiveVisitor for @isAuthenticated must implement visitQuery method
at /Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:650:17
at /Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:692:5
at Array.forEach (<anonymous>)
at each (/Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:691:30)
at /Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:643:7
at /Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:692:5
at Array.forEach (<anonymous>)
at each (/Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:691:30)
at Function.SchemaDirectiveVisitor.getDeclaredDirectives (/Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:633:5)
at Function.SchemaDirectiveVisitor.visitSchemaDirectives (/Users/Sammy/Projects/mblt-gql/node_modules/graphql-yoga/node_modules/graphql-tools/src/schemaVisitor.ts:523:12)
[nodemon] app crashed - waiting for file changes before starting...
Was there a breaking change documented somewhere?martin
03/15/2018, 4:02 PMajmakhl
03/15/2018, 4:04 PMcomponentWillReceiveProps = (nextProps) => {
if (!nextProps.userQuery.loading) {
if (nextProps.userQuery) {
this.setState({ data: nextProps.userQuery.chats });
}
}
I cant seem to refetch whenever i create a new chatsakhmedbayev
03/15/2018, 4:11 PMsakhmedbayev
03/15/2018, 4:12 PMuser
03/15/2018, 4:13 PMfeed
is a GraphQL-Yoga typeuser
03/15/2018, 4:14 PMgraphql-yoga
I guess. So I should move this to the server-side in the prisma resolver?
EDIT: here?
feed(parent, args, ctx, info) {
return ctx.db.query.posts(null, info)
},
ajmakhl
03/15/2018, 4:20 PMnextProps.userQuery.refetch()
gives an error when ever i create a new mutation but it doesnt when the page loadsuser
03/15/2018, 4:20 PMtype Query {
feed(..., orderBy: String): ...
}
Then in your resolver...
feed(parent, args, ctx, info) {
return ctx.db.query.posts({
orderBy: args.orderBy
}, info)
},
lionstone
03/15/2018, 4:25 PMgraphcool invoke-local --function signup --json src/invitation/test.json
where test.json looks like {
"email": "<mailto:benj@gmail.com|benj@gmail.com>",
"password": "password"
}