prisma-graphql Questions
14
Solved
I am getting this error message from prisma when I am running the GraphQL query.
Environment variable not found: DATABASE_URL.\n --> schema.prisma:6\n | \n 5 | provider = \"postgresql\"...
Knelt asked 1/6, 2021 at 21:29
5
Solved
Hi everyone I am getting this error "'prisma' is not recognized as an internal or external command, operable program or batch file." while running prisma login command in cmd I have installed the p...
Gustafsson asked 24/1, 2019 at 9:30
8
Whenever I've try to use @supabase/supabase-js to query the db, I get an error.
error: {
hint: null,
details: null,
code: '42501',
message: 'permission denied for schema public'
}
I think it h...
Masticatory asked 15/5, 2021 at 22:3
4
Solved
This is more a design question than a coding question. Suppose the following schema:
// schema.prisma
// Solution 1
model Entity {
id Int @id @default(autoincrement())
attrs EntityAttr[]
}
mod...
Oldcastle asked 17/9, 2021 at 14:11
4
I have a problem with connectivity in docker. I use an official mysql 5.7 image and Prisma server. When I start it via prisma cli, that uses docker compose underneath (described here) everything wo...
Mushro asked 23/2, 2018 at 15:46
5
Solved
I wanted to make a chat app to practice working with graphql and node, for database I used prisma. I was doing everything like in this tutorial.
https://www.howtographql.com/graphql-js/0-introducti...
Argufy asked 17/7, 2020 at 11:30
14
Solved
I'm working on ReactJS project with NextJS Framework and Prisma to manage connection and queries to the DB.
On my local project the Support model is found and when I use it in my API and build my p...
Sailer asked 21/9, 2021 at 19:22
3
Solved
I would like to know how can I remove all items in table with Prisma2 and Jest ?
I read the CRUD documentation and I try with this :
user.test.js
....
import { PrismaClient } from "@prisma/c...
Supper asked 18/6, 2020 at 18:44
5
Solved
I ran into an issue where I need to check if a user exists by his username and email since both are unique fields in the database, but I got an error.
Argument where of type UserWhereUniqueInput ne...
Galsworthy asked 1/2, 2021 at 19:6
6
I am trying to learn how to use prisma with a psql database.
I'm running into an issue using references where the id is a uuid string.
I have a user model with:
model User {
id String @id @default...
Pilchard asked 9/2, 2022 at 3:2
4
Solved
I'm using Prisma (https://www.prisma.io) as ORM. I want to check for duplicates when store data and, if not exists, create a new record.
I thought I could do that with upsert method provided by P...
Tadeo asked 28/3, 2019 at 18:35
3
I am not able to use multiple database in same application . How can we use multiple data sources.
Can we generate multiple "schema.prisma" for different database connections.
Bulbul asked 7/9, 2021 at 9:21
1
I'm trying to set timeout with prisma-labs/graphql-request. I've tried the way described here - https://github.com/prisma-labs/graphql-request/issues/103.
const client = new GraphQLClient(config.u...
Inverson asked 14/11, 2019 at 20:28
2
Solved
Does prisma support the ability to fetch data from multiple schemas from within a single database?
Siddra asked 22/1, 2021 at 6:50
1
I'm trying to create a friendship mechanic for my app using Prisma among other tools. In the docs it shows the following example for how to create a many-to-many self relation:
model User {
id Int...
Bluenose asked 4/10, 2022 at 3:0
5
Solved
In my Prisma schema, I have a many-to-many relationship between posts and categories. I've added @map options to match the Postgres snake_case naming convention:
model Post {
id Int @id @default(a...
Natalianatalie asked 29/1, 2021 at 7:33
3
I can't use apollo Studio. After migration for Graphql playground. When I try to run in localhost and redirect me to apollo studio sanbox https://studio.apollographql.com/sandbox?endpoint=http%3A%2...
Tish asked 16/7, 2021 at 14:23
2
Solved
I know currently Prisma doesn't support ordering by multiple scalars fields, (see this issue: https://github.com/prisma/prisma/issues/62).
But, I'm wondering if there is someone who found a solutio...
Sordello asked 24/4, 2019 at 13:13
1
Prisma generates database tables with uppercase in MySQL. Is there any way to generate tables only in lower case?
Encase asked 7/5, 2021 at 8:8
1
I am using Prisma & PostgreSQL. Here I grab some stuff:
await prisma.items.findMany({
where: { itemId: itemId },
include: {
modules: {
include: {
lessons: true
}
}
}
});
I do not need...
Staten asked 27/10, 2021 at 12:15
2
Solved
I need save DECIMAL(10,2) in database. In MySQL there is DECIMAL type.
MySQL docs:
https://dev.mysql.com/doc/refman/8.0/en/fixed-point-types.html
Prisma 2.0 docs:
https://www.prisma.io/do...
Hanschen asked 26/4, 2020 at 23:23
2
Solved
how can i set string(varchar) length for string type be 50 and define a column be TEXT in prisma schema, for user table i want name be varchar(50) and bio be Text column.
im creating my tables by p...
Obau asked 24/7, 2020 at 18:9
3
I want to implement a simple searching functionality with Prisma
I have seen some info about using the where clause but it’s case sensitive so it’s not a good solution.
I’ve also seen some tutoria...
Negotiation asked 5/12, 2018 at 4:58
1
Solved
I have this not so straightforward model relationship in Prisma. User --< Enrollment >-- Course and I can't figure out how to ensure the Course title field is unique just among that user's cr...
From asked 23/4, 2021 at 8:59
2
I am using postsConnection query for infinite scroll. It contains variables like after.
After doing an upvote mutation, I want to refetchQueries... like this 👇
const upvote = await client.mutate(...
Oberg asked 11/4, 2019 at 18:24
1 Next >
© 2022 - 2024 — McMap. All rights reserved.