musbell
09/17/2018, 9:09 PMmusbell
09/17/2018, 9:16 PMmusbell
09/17/2018, 9:17 PMmusbell
09/17/2018, 9:18 PMHenry
09/17/2018, 9:53 PMmusbell
09/22/2018, 6:20 AMEntrepreneur3
09/23/2018, 1:13 PMtype Role {
id: ID!
title: String!
permissions: [Permission!]!
}
Permission:
type Permission {
id: ID!
title: String!
}
Mutation:
createRole(
title: String
permissions: [ID!]
): Role
Resolver:
createRole(root, args, context) {
return context.prisma.createRole(
{
title: args.title,
permissions: {
connect: args.permissions <-- This does not work I get always an error from the GraphQL playground, what's the solution?
}
}
)
},
I am new to this kind of server side programming I am coming from the iOS-World. Would appreciate any help since I kinda feel that the prisma.io documentation lacks on information. I don't know if that is the case but it really feels so.
If that questions fits somewhere else better than here then please tell menilan
09/25/2018, 7:49 PMAlireza Ghamkhar
10/07/2018, 8:07 PMTangoJuliett
10/29/2018, 9:25 PMexport const Prisma = makePrismaClientClass<ClientConstructor<Prisma>>({typeDefs, endpoint: `${process.env['PRISMA_ENDPOINT, '<http://localhost:4466/currentbusiness>'']}`})
from:
endpoint: ${env:PRISMA_ENDPOINT, '<http://localhost:4466/currentbusiness>'}
in my prisma.yml fileElfayer
10/30/2018, 1:27 AMtype User which would contain posts: [Post!]!, I'd receive null for posts. The only way to get the users with the posts in prisma client is with a fragment (as far as I am aware). This makes resolvers much more verbose to define (and update on model modifications). Is this an expected behavior?Martin Hunt
10/30/2018, 4:10 AMmisha
10/31/2018, 2:46 PMprisma generate using an endpoint and secret, but it says datamodel is required. Am I thinking about this correctly? Perhaps I should just stick with a mono-repo?prilutskiy
11/07/2018, 5:10 PMprilutskiy
11/07/2018, 5:10 PMLuke
11/13/2018, 4:42 AMdatamodel.prisma into schema.graphql so I donāt need to re write them ?JĆørgen V
11/21/2018, 1:25 PMmongo | 2018-11-21T13:18:31.002+0000 I FTDC [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK
prisma | Exception in thread "main" java.lang.RuntimeException: Unable to load Prisma config: java.lang.RuntimeException: Please provide a valid Mongo connection uri.
Hmmm. How can I see what connection string prisma is using? The docker-compose.yml seems correct to me .kyleshevlin
11/22/2018, 4:33 AMjavascript-client, does it make sense to import the typeDefs from prisma-client.js into whatever I'm using to make my graphql server? The Prisma tutorials have you create your own schema.graphql file to supply the typeDefs, but that seems redundant to rewrite your schema after writing it in the datamodel.prisma file.prilutskiy
11/22/2018, 8:27 AMprisma.graphql and delegating the call to the prisma-client.kyleshevlin
11/22/2018, 5:39 PMjavascript-client generator doesn't generate a prisma.graphql file.kyleshevlin
11/22/2018, 5:39 PMkyleshevlin
11/22/2018, 5:39 PMKen
11/23/2018, 12:56 AMKen
11/23/2018, 1:06 AMRostislav Simonik
11/30/2018, 4:25 PMa: {
b: {
c: {
d: 1,
},
},
}
outer scheme:
a: {
c: {
d: 1,
},
}
so node b is internal and donāt want to expose it to external consumers. Is that achievable at this moment ? Thanks a lot.rooneyK
12/07/2018, 7:51 AMDrew Delianides
12/07/2018, 5:26 PMupdateMany mutation in prisma-client? It works in prisma-bindings but at least in the types those fields aren't available.Drew Delianides
12/07/2018, 5:31 PMctx.prisma.updateManyFoo({
data: {
field: {
create: [ { ... } ]
},
},
where: {
id,
},
});Drew Delianides
12/07/2018, 5:32 PMFooUpdateManyMutationInput.siyfion
12/13/2018, 3:07 PMprisma.user({ email: context.email }).following({ where: {
lists_some: {
name: 'Been',
items_some: {
venue: {
id: venueId
}
}
}
}})
How would I go about getting a count back for the number of āfollowersā, rather than getting all the data and doing a .length?