menu

Prisma

🔴 The Prisma Spectrum community is not officially managed by Prisma's support team any more. Please seek help on GitHub or on Slack instead. Learn more: https://spectrum.chat/prisma/general/where-and-how-to-best-seek-help-with-questions-problems~687a1b8f-8658-4df3-8849-ea5ab3503f28

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Beta
view-forward
# Community
view-forward
# GraphQL
view-forward
# OSS
view-forward
# Random
view-forward
Team
Posts
Members
Info

create mutation with other type in the argument

hi everyone i have some problem with my mutation 'createStudentBadge' , i wanna know how can i add another type in field with the argument . For example i have that mutation in my file TypeDef : createStudentBadge( badge: badge! …

thumbsup
0
message-simple
6

Help with arrays as variables

So I have the following working GQL: However when I try and make it accept passed variables it craps out because there is no ID! defined because it's an array of IDs.... I have tried skipping the $id: ID! and creating a new variable $arrayOfIds: Json but that fails as well,…

thumbsup
0
message-simple
0

go Client generation

I have recently introspected a postgres DB and then generated a go client, however the go client contains compilation errors; prisma-client/prisma.go:6006:60: undefined: tfwm_highways_he_dapiEdgeExecArray prisma-client/prisma.go:6021:10: undefined:…

thumbsup
0
message-simple
2

Help with Batch Mutations

I need to create multiple records at once. I can do these one at a time but I would prefer to batch them and send it all in one query. The only spot I can find this with Prisma/GQL is the old docs, where it appears to be no longer the case. …

thumbsup
0
message-simple
3

How seed data with enum?

Hi! I'm very new in prisma So please help me: …

thumbsup
0
message-simple
1

Has anyone used graphql-yoga and prisma with docker?

I used this as a starting point: https://github.com/howtographql/react-urql I set followed the docker instructions and it works locally. …

thumbsup
0
message-simple
1

Variable '$data' expected value of type 'VoteCreateInput!

When I am trying to do the "vote" mutation, getting the below error. My other mutations are working fine. "data": null, "errors": [ …

thumbsup
0
message-simple
0

Hey, quick question about handling a queue system with db row locks...

Building an commerce website and I was suggested using a db transaction to lock the row. This would prevent against two users making simultaneous requests and overselling the product if the stock is low enough. Is there a way to do this currently with prisma or is there a better…

thumbsup
0
message-simple
0

Hi guys, what's the best way to handle field predecation using prisma?

I was digging through the docs but found no material related to field predecation directive. Is it something I should just add myself or is there a built-in directive?

thumbsup
0
message-simple
0

Error on mutation in Prisma Playground

Following the Graphql-node tutorial, currently at step "Authentication..." Inputing the mutation: QUERY: …

thumbsup
0
message-simple
1