RaphaelEtim
RaphaelEtim
PPrisma
Created by deanStealth on 1/8/2025 in #help-and-questions
Prisma Promises not transferring context like Promises?
Hi @deanStealth I'll ask the team.
13 replies
PPrisma
Created by Koks on 1/20/2025 in #help-and-questions
Prisma Playground Run button doesn't working
Hi @Koks Thank you for raising this. I'll share it with the team so they can take a look.
3 replies
PPrisma
Created by bockster6669 on 1/20/2025 in #help-and-questions
'ts-node' is not recognized
this is how i defined my script
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
}
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
}
Then running the command executes it ` npx prisma db seed
9 replies
PPrisma
Created by bockster6669 on 1/20/2025 in #help-and-questions
'ts-node' is not recognized
You mean, if I install ts-node globally?
No, you don't need to install ts-node globally
9 replies
PPrisma
Created by bockster6669 on 1/20/2025 in #help-and-questions
'ts-node' is not recognized
No description
9 replies
PPrisma
Created by bockster6669 on 1/20/2025 in #help-and-questions
'ts-node' is not recognized
Hi @bockster6669 If you run the command below with your seed script defined like you mentioned, it would work.
npx prisma db seed
npx prisma db seed
9 replies
PPrisma
Created by D3levV on 1/20/2025 in #help-and-questions
Prisma and Google cloud run
Hi @D3levV Can you please take a look at this closed issue? There are some solutions mentioned there.
5 replies
PPrisma
Created by Kasmadan (UA) on 1/14/2025 in #help-and-questions
Console prisma studio
Hi @Kasmadan (UA) I appreciate your patience. I can reproduce the exact scenario you have. The record works correctly in the local studio instance but fails when used in studio on the console. I'm sharing this with the team for investigations.
12 replies
PPrisma
Created by salty on 1/15/2025 in #help-and-questions
Could not find the migration file at
You might also find this comment helpful to troubleshoot your issue.
8 replies
PPrisma
Created by salty on 1/15/2025 in #help-and-questions
Could not find the migration file at
If it's anything other than utf-8, you will need to change it back to utf-8
8 replies
PPrisma
Created by salty on 1/15/2025 in #help-and-questions
Could not find the migration file at
Hi @salty What's the encoding of your 0_init\migration.sql file?
8 replies
PPrisma
Created by Time on 1/17/2025 in #help-and-questions
Was a token launched or the one that is out is a scam
No we don't anything built on Prism. Also, Prism and Prisma are not the same although they look similar
6 replies
PPrisma
Created by Nils Reichardt on 1/16/2025 in #help-and-questions
Can't access the database from the console
Hi @Nils Reichardt Can you please try again? Let us know if you still experience this issue.
7 replies
PPrisma
Created by sitaram on 1/15/2025 in #help-and-questions
TypeScript issue with JSON[] field filter using path
You can filter on the presence of a specific value in a scalar array (strings, integers). https://www.prisma.io/docs/orm/prisma-client/special-fields-and-types/working-with-json-fields#filtering-on-nested-array-value
7 replies
PPrisma
Created by sitaram on 1/15/2025 in #help-and-questions
TypeScript issue with JSON[] field filter using path
Prisma supports filtering on Json fields using the path option, but the functionality differs between database connectors: For MySQL, you can filter on object key values inside arrays. The Json filters documentation provides an example:
const getUsers = await prisma.user.findMany({
where: {
pets: {
path: '$.favorites.treats[*].name',
array_contains: 'Dreamies',
},
},
})
const getUsers = await prisma.user.findMany({
where: {
pets: {
path: '$.favorites.treats[*].name',
array_contains: 'Dreamies',
},
},
})
For PostgreSQL, filtering on object key values in arrays is not supported.
7 replies
PPrisma
Created by Nils Reichardt on 1/16/2025 in #help-and-questions
Can't access the database from the console
I can confirm that we are working to provide a fix for this issue.
7 replies
PPrisma
Created by Nils Reichardt on 1/16/2025 in #help-and-questions
Can't access the database from the console
Hi Nils 👋 Can you please share your Github handle?
7 replies
PPrisma
Created by sitaram on 1/15/2025 in #help-and-questions
TypeScript issue with JSON[] field filter using path
Hi @sitaram The NullableListFilter type generated by prisma-json-types-generator doesn't include the path method because Prisma doesn't support direct filtering on JSON arrays in PostgreSQL in the same way it does for single JSON fields. You may want to consider using raw SQL queries to perform the filtering if it's crucial to do it at the database level.
7 replies