Andrew Ross
09/18/2021, 5:25 PMgenerator client {
provider = "prisma-client-js"
binaryTargets = ["native"]
}
Question -- I'm running a docker container on WSL2 Ubuntu (Linux) to host a postgres db but have Prisma et al (remaining codebase) configured in a Windows environment. The native setting for binaryTargets detects the active OS -- that'd be good since a lot of the guys I collab with use Macs...
setting the binaryTargets to "native" shouldn't result in a weird side effect like OS oscillation between Windows and Linux right?Ibad Shaikh
09/18/2021, 5:42 PM_prisma.post.count_()
But it says:
Invalid prisma.post.aggregate()
invocation:\n\n\n Failed to validate the query: Field does not exist on enclosing type.
at `Query.aggregatepost.AggregatePost._count
Any solution for it?
Thanking in advance :)Chris King
09/18/2021, 7:44 PMIbad Shaikh
09/18/2021, 8:51 PMconst result = prismaOffsetPagination({
model: User, // How to access prisma model like in this example.
cursor: <cursor>,
size: 5,
buttonNum: 7,
orderBy: 'id',
orderDirection: 'desc',
where: {
email: {
contains: 'smallbee',
},
},
prisma: prisma,
});
Check Line:2Dimitri Ivashchuk
09/19/2021, 7:57 AMconst countOfUnreadEvents = await prisma.event.aggregate({
_count: {
isRead: true,
},
where: {
isRead: null,
},
});
Luke Carr
09/19/2021, 10:11 AMPhil Bookst
09/19/2021, 2:16 PMJohn Kelly
09/19/2021, 3:23 PMrejectOnNotFound
throwing an exception?John Kelly
09/19/2021, 3:26 PMJohn Kelly
09/19/2021, 3:28 PMJohn Kelly
09/19/2021, 3:28 PMCharles Gaudreau Jackson
09/19/2021, 4:36 PMDavid Sooter
09/19/2021, 5:24 PMpath
in where.tags.path for type JsonNullableFilter. Did you mean not
? Available args:\ntype JsonNullableFilter {\n equals?: JsonNullValueFilter | Json\n not?: JsonNullValueFilter | Json\n}\n\n\n
any ideasMikołaj Palkiewicz
09/19/2021, 5:57 PMmanuel
09/19/2021, 7:00 PMmanuel
09/19/2021, 7:05 PMmanuel
09/19/2021, 7:05 PMmanuel
09/19/2021, 7:29 PMupsertMany
manuel
09/19/2021, 7:35 PManalysis id
and hgnc id
and the pvalue
. In the second step I basically need a way to check if the analysis id AN-23f23
and the gene id HGNC:11582
already exist so I can just insert/add the log2val
. if that (analisis id and hgncid) combination doesn't exist I need to create it.manuel
09/19/2021, 7:35 PMDavid Sooter
09/20/2021, 5:55 AMconst getUsers = await prisma.user.findMany({
where: {
extendedPetsData: {
path: ['petName'],
equals: 'Claudine',
},
},
})
But i always get the error :
'\nInvalid prisma.md_devices.findMany()
invocation:\n\n{\n take: 1000,\n skip: 0,\n where: {\n tags: {\n path: [\n ~~~~\n 'imei'\n ],\n equals: '352739096253221'\n }\n },\n select: undefined,\n orderBy: undefined\n}\n\nUnknown arg path
in where.tags.path for type JsonNullableFilter. Did you mean not
? Available args:\ntype JsonNullableFilter {\n equals?: JsonNullValueFilter | Json\n not?: JsonNullValueFilter | Json\n}\n\n'David Sooter
09/20/2021, 6:28 AMGeorge / გიორგი
09/20/2021, 8:09 AMLuis Kuper
09/20/2021, 8:45 AMOFFSET $<Number>
at the end, although i didn't provide any args for that, e.g. (having 3 params provided for the query (postgres):
.... AND "t0"."A" IS NOT NULL))) OFFSET $4) AS "sub"
I assume the value the prismaClient generates for that OFFSET is always '0' by default, since the query results are as expected and no offset seems to be applied.
Is there a reason the prismaClient generates an OFFSET statement for every query?Harun
09/20/2021, 11:17 AMJonathan
09/20/2021, 1:57 PMAlireza Haghshenas
09/20/2021, 3:18 PManiraga
09/20/2021, 3:49 PMgustav
09/20/2021, 6:07 PMgustav
09/20/2021, 6:09 PM