For questions about Version 2 of the Prisma ORM
Questions tagged [prisma2]
232 questions
0
votes
1 answer
Prisma Queries with conditions
I'm currently building a new project with Prisma and I'm thinking about how to build my SQL queries when I have different dependencies.
Suppose I want to add an include or a where condition to the query under a certain condition.
Should I now use a…

pasek
- 347
- 4
- 11
0
votes
2 answers
How can I share prisma2 studio with my teammates?
I'm using prisma2 service in expressJS graphQL API. I want to use prisma2 studio page as a admin panel, and I want to share prisma2 studio page with my teammates, who are not programmer. Because it is an admin panel that we can change db Data, I…

jooho zhiang
- 21
- 3
0
votes
0 answers
Variable \"$data\" of required type "Type" was not provided
I have a survey creation mutation and I want to create nested records with survey creation mutation. I am using query variables to set the data for mutation. When I create only survey without nested attributes it works successfully but when I add…

Abid Iqbal
- 753
- 8
- 22
0
votes
1 answer
Retrieving related model of a deleted model in Prisma 2
Hello guys here is the scenario i have;
model User {
id Int @default(autoincrement()) @id
...
posts Post[]
comments Comment[]
}
model Post {
id Int …

MoffatMore
- 67
- 1
- 8
0
votes
1 answer
How to implement a social media "following feed" query using Prisma 2?
I have a question related to writing a "social media" style feed query, but in this case I'm using Prisma 2. I have a music application where I'd like to display a feed of all Albums from Artists that a User follows.
In my schema.prisma, I have the…

Jordan Lewallen
- 1,681
- 19
- 54
0
votes
1 answer
Why nexus dev command runs app twice, and how to fix it?
I created super simple application using nexus graphql framework.
First step like this:
https://www.nexusjs.org/#/tutorial/chapter-1-setup-and-first-query
I api/app.ts i typed code:
const uid = require('uid')
let i = 0;
const sleep = async (ms:…

Daniel
- 7,684
- 7
- 52
- 76
-1
votes
1 answer
Apollo Server with prisma 2
I am trying to create Apollo server + Lambda + primsa2
const server = new ApolloServer({
typeDefs
resolvers,
playground: {
endpoint: "/dev/graphql"
}
})
But what I have from prisma2 schema is like
generator client {
…

Lee
- 333
- 3
- 7
- 19