Richard
04/29/2022, 11:46 AMPrisma.JsonValue
type to Prisma.InputJsonValue
?Richard
04/29/2022, 12:22 PMJeremiah
04/29/2022, 12:37 PMconnect
is the relationship supposed to connect both ways? Right now a create
that I'm using is connecting the parent to the child but is not creating a connection from the child to the parent.GaΓ«tan Busato
04/30/2022, 9:33 AMnpx prisma migrate dev --preview-feature
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Error: Unable to require(`/node_modules/@prisma/engines/libquery_engine-debian-openssl-3.0.x.so.node`)
/snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libcrypto.so.3)
Brendan Allan
05/01/2022, 1:32 PMMichal
05/01/2022, 9:58 PMEden Lane
05/02/2022, 9:54 AMuser
05/02/2022, 10:36 AMuser
05/02/2022, 10:42 AMPaul
05/02/2022, 2:06 PMselect count(*) from forum_post where id = '01G229XJPH7BTHFD89B7TD45XX' OR "postId" = '01G229XJPH7BTHFD89B7TD45XX';
count
-------
2
(1 row)
return db.forumPost.count({
where: {
OR: [
{
id: postId,
postId: postId,
},
],
},
})
Is this a bug, Or maybe I'm using the OR cond wrong? ThanksSantosh
05/02/2022, 6:22 PMconst UserSchema = new Schema({
email: {
type: String,
lowercase: true,
required: true
},
info: {
firstName: String,
lastName: String,
mobile: String
},
apps: [{type: Schema.Types.ObjectId, ref: 'AppList'}]
}, {timestamps: true});
module.exports = User = mongoose.model('user', UserSchema);
# AppSchema
const appSchema = new Schema({
name: {
type: String,
lowercase: true,
unique: true,
required: true
},
description: String,
}, {timestamps: true});
module.exports = AppList = mongoose.model('AppList', appSchema);
Okan YΔ±ldΔ±rΔ±m
05/02/2022, 8:30 PMOkan YΔ±ldΔ±rΔ±m
05/02/2022, 8:30 PMKenneth Gitere
05/03/2022, 7:59 AMJames L
05/03/2022, 8:45 AMJames L
05/03/2022, 9:17 AMJames L
05/03/2022, 9:18 AMJames
05/03/2022, 9:44 AMJames L
05/03/2022, 10:10 AMclient
or lead
?Mathie
05/03/2022, 10:12 AMJames L
05/03/2022, 10:15 AMpush
only modifies schema, not data. You may be looking for the docs on seeding your db - https://www.prisma.io/docs/guides/database/seed-databaseMathie
05/03/2022, 10:16 AMWilliam Brandham
05/03/2022, 1:29 PMuser
05/03/2022, 2:00 PMζη½εδΈζ₯
05/03/2022, 2:29 PMDownloading Prisma engines for debian-openssl-3.0.x [ ] 0%Error: Not Found https://binaries.prisma.sh/all_commits/3c463ebd78b1d21d8fdacdd27899e280cf686223/debian-openssl-3.0.x/introspection-engine.gz
ζη½εδΈζ₯
05/03/2022, 2:30 PMJacob Ross
05/03/2022, 3:08 PMstartsAt
and endsAt
we will add decorators to the entity so that startsAt < endsAt
and vice versa. However when input for update comes in we only get the time to update and not both. we need a layer that checks that the update is valid before we call Prisma.client.model.update()
to update the model. Prisma.Client
does not know about the validation and itβs not applicable in the Prisma.Schema
.
Does anyone know of an elegant way to handle this need?Quentin SAGNOL
05/03/2022, 3:20 PMKharann
05/03/2022, 5:04 PMHenrique Aurelio
05/03/2022, 7:05 PM