Val Neekman
07/14/2021, 4:09 PMuser
07/14/2021, 4:23 PMuser
07/14/2021, 4:23 PMuser
07/14/2021, 4:23 PMuser
07/14/2021, 4:23 PMBa Thien Tran
07/14/2021, 4:36 PMuser
07/14/2021, 4:37 PMArun Kumar
07/14/2021, 4:51 PMqa
to dev
on my local machine. But it seems that app is still fetching the data from qa.Arun Kumar
07/14/2021, 4:52 PMNaotho Machida
07/14/2021, 5:34 PMNaotho Machida
07/14/2021, 5:35 PMon prisma.createOneimgSmalls. Provided String, expected Bytes.
Naotho Machida
07/14/2021, 5:35 PMuser
07/14/2021, 6:09 PMuser
07/14/2021, 6:09 PMuser
07/14/2021, 6:09 PMuser
07/14/2021, 6:09 PMBrian de la Motte
07/14/2021, 8:02 PMexpires_at DateTime @default(now() + 30)
in a model?Chris Tsongas
07/15/2021, 5:23 AMprisma db seed --preview-feature
is that going to add duplicate seed data to previously seeded tables?Niraj
07/15/2021, 7:08 AMTraky Richard
07/15/2021, 7:34 AMDev__
07/15/2021, 7:39 AMrejectOnNotFound
enabled on a global level for all findFirst
and findUnique
queries but it doesnt seem to work. I am using nestjs
tho so the prisma
configuration is different
// prisma config
export class PrismaService extends PrismaClient<LogOptions> implements OnModuleInit, OnModuleDestroy {
constructor() {
super({
log: [
{
emit: 'event',
level: 'query'
}
],
rejectOnNotFound: {
findFirst: () => new Error('error'),
findUnique: () => new Error('error')
}
});
}
async onModuleInit() {
await this.$connect();
}
async onModuleDestroy() {
await this.$disconnect();
}
}
// findFirst query
const buyer = await this.prisma.buyer.findFirst({
where: {
id
},
rejectOnNotFound: true
});
1. so when I execute this findFirst
it does throw an error but not the error i defined in the prisma
config. Instead it says [NotFoundError: No Buyer found] { clientVersion: '2.26.0' }
2. Also, when I do NOT provide the rejectOnNotFound
in the findFirst
query it seems that the globally configured rejectOnNotFound
is not even doing anything...
3. as last, when I configure rejectOnNotFound
on a global level i'd expect that my buyer
variable can not be a possible null
value because it will be rejected if not found but it still says is possibly 'null'
yoenho park
07/15/2021, 9:06 AMAhmed Khan
07/15/2021, 10:08 AMFeralheart
07/15/2021, 10:33 AMFeralheart
07/15/2021, 10:33 AMKieran Salawu
07/15/2021, 10:45 AMFeralheart
07/15/2021, 11:12 AMuser
07/15/2021, 12:03 PMMohamed M'rabet
07/15/2021, 12:05 PM"Command failed (IllegalOperation): This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.)"
Can you help me please #mongodb
In my .env :
DATABASE_URL="<mongodb://username:password@host:27017/dbname>"
Oluwasetemi Ojo
07/15/2021, 12:19 PM@unique
directive is not working with mongodb?