siyfion
05/29/2018, 9:49 AMpicosam
05/29/2018, 9:59 AMjson-to-graphql-query I can, for example, send a whole filter object as a variable to my GraphQL API. My question is: is it possible to send a JSON object as a filter withotu using such a library, if one of the filter object variables has an enum type?codebeast
05/29/2018, 10:28 AMprisma deploy on this project but even with the hook, it doesn’t download the prisma schema: https://github.com/christiannwamba/hackernews-node/tree/generatedhalborg
05/29/2018, 11:39 AMprisma init, it creates a service on my “default” team insteadMathieu Devos
05/29/2018, 12:41 PMMathieu Devos
05/29/2018, 12:43 PMsiyfion
05/29/2018, 12:52 PMforward-to('db') in a query resolver in my API, how do I get all the where syntax that Prisma offers, on my API?siyfion
05/29/2018, 12:53 PMwhere, it doesn’t know what it is… And looking at the Schema for the type, it only knows the fields, not the Input Types.siyfion
05/29/2018, 2:21 PMseed.graphql file with multiple mutations listed, would do it.. but I get an error: ERROR: Must provide operation name if query contains multiple operationsmarco
05/29/2018, 2:35 PMtype User @model {
id: ID! @isUnique
name: String
conversations: [Conversations!]! @relation(name: "UserConversations")
auth0UserId: String @isUnique
nachrichten: [Message!]! @relation(name: "MessagesSendByUser")
}
type Conversations @model {
id: ID! @isUnique
user: [User!]! @relation(name: "UserConversations")
messages: [Message!]! @relation(name: "MessagesInConversation")
createdAt: DateTime!
updatedAt: DateTime!
}
type Message @model {
id: ID! @isUnique
createdAt: DateTime!
updatedAt: DateTime!
message: String!
conversation: Conversations @relation(name: "MessagesInConversation")
read: Boolean
from: User @relation(name: "MessagesSendByUser")
}
And I want that only the authenticated User can get the Conversations (which contain messages) he is involved in.
How do I extend my shema? I find the graphcool doc rather not so helpful. I tried something along the lines like this.
query getConversations($user_id: ID!, $conversationsUser_id: ID!) {
getSomeConversations(filter: { AND: [{ id: $user_id }, { id: $conversationsUser_id }] })
}
extend type Query {
getSomeConversations(
)
}
But I still don't really get how to, maybe you guys can help me? Thank youstearm
05/29/2018, 3:08 PMupdatedFields_contains_every and updateFields_contains_some dont work? (im talking about subscriptions)timm
05/29/2018, 5:07 PMError: Directive model: Couldn't find type model in any of the schemas. I'm implementing directive permission structure along these lines: https://medium.com/@lastmjs/advanced-graphql-directive-permissions-with-prisma-fdee6f846044hez
05/29/2018, 5:41 PMDan
05/29/2018, 7:35 PMv
05/29/2018, 8:40 PMpnicolaou
05/29/2018, 8:42 PMpnicolaou
05/29/2018, 8:42 PMpnicolaou
05/29/2018, 8:42 PMpnicolaou
05/29/2018, 8:42 PMErmolay
05/29/2018, 10:33 PMv
05/29/2018, 10:38 PMapollo-errors error.
Something like: {
"data": {
"signup": null
},
"errors": [
{
"message": "Someone already has taken that username.",
"name": "TakenUsernameError",
"time_thrown": "2018-05-29T22:38:00.358Z",
"data": {}
}
]
}Devin
05/29/2018, 11:19 PMvirtualirfan
05/30/2018, 12:08 AMlancej
05/30/2018, 12:17 AMprisma deploy does not work (https://github.com/prismagraphql/prisma/issues/2528)
The suggestion in the github issue does not work for me.. or at least not in an obvious way.Devin
05/30/2018, 12:51 AMprisma deploy shows that it's updating your generated file but doesn't actually update anything. Then you delete the generated file and it doesn't regenerate it at all but the cli is saying it does. On version 1.7.4Jscott388
05/30/2018, 1:23 AMDuy Doan
05/30/2018, 2:03 AMDuy Doan
05/30/2018, 2:04 AMDuy Doan
05/30/2018, 2:05 AMDuy Doan
05/30/2018, 2:05 AM