Robert Witchell
10/12/2021, 4:16 AMyarn node ./dist/src/index.js
• I have path aliases, so when i run tsc
, my ./dist folder is throwing errors that I cannot import @myCustomAlias/server
. Should I use webpack or babel here?
I'm hoping someone can help explain what process I need to run. build: tcs && webpack
? to get aliases working in JS?Dante
10/12/2021, 5:50 AMconst usersWithArgs = Prisma.validator<Prisma.UserArgs>()({
include: {
_count: {
select: {
followers: true,
followings: true,
},
},
},
});
type UsersWithArgs = Prisma.UserGetPayload<typeof usersWithArgs>[];
export const QueryTypeDefs = gql`
type Query {
users: [User]! # Wanna use type UsersWithArgs in Here
}
Jemin Kothari
10/12/2021, 8:47 AMMoray Macdonald
10/12/2021, 9:00 AMThomas Schaaf
10/12/2021, 9:04 AMconst worker = { id: '1' };
const calls = await this.prisma.call.findMany({
where: {
CallEvents: {
some: { data: { path: '$.workerId', equals: worker.id } },
},
},
});
with the error
TS2322: Type '{ path: string; equals: string; }' is not assignable to type 'JsonFilter | undefined'. Object literal may only specify known properties, and 'path' does not exist in type 'JsonFilter'.
SKhan
10/12/2021, 9:47 AMVladi Stevanovic
Yaakov
10/12/2021, 11:52 AMdepends_on
another container running SQL Server.
Can someone please share an example of a Dockerfile
that starts up Prisma as one of its steps?
Thank you!Andy Fang
10/12/2021, 2:51 PMuser
10/12/2021, 4:04 PMSabin Adams
10/12/2021, 4:50 PMMischa
10/12/2021, 5:45 PMLEFT JOIN
in prisma? want to find messages without read receiptsJinay Jain
10/12/2021, 9:03 PMcount
for this kind of type:
const topicWithResources = Prisma.validator<Prisma.TopicArgs>()({
include: {
resources: true,
},
});
export type TopicWithResources = Prisma.TopicGetPayload<
typeof topicWithResources
>;
Sam
10/12/2021, 10:27 PMMartin Klasson
10/12/2021, 10:42 PMINSERT...ON DUPLICATE KEY UPDATE
Or do I have to go all native MYSQL for making this?Martin Klasson
10/12/2021, 10:53 PMJon
10/12/2021, 11:49 PMSwapnil Tandel
10/13/2021, 1:56 AMuser
10/13/2021, 8:13 AMYeonHoPark
10/13/2021, 8:28 AMFabriece Sumuni
10/13/2021, 8:55 AMAlex Dekc
10/13/2021, 10:34 AMuser
10/13/2021, 12:03 PMMo El
10/13/2021, 4:57 PMMo El
10/13/2021, 4:57 PMHarun
10/13/2021, 5:25 PMYaakov
10/13/2021, 6:28 PMCHECK CONSTRAINT
in my schema.prisma
file, since SQL Server doesn't support ENUM
. Does anyone know how this can be accomplished?
Is there a way to include raw SQL as part of the schema?Jagmeet Dhillon
10/13/2021, 6:47 PMTyler Clendenin
10/13/2021, 7:53 PMcache lookup failed for type XXXX
is there a programmatic way I can catch this and force Prisma to reconnect or something? as it stands i have to restart my application if this error happensBlakelock Brown
10/13/2021, 8:26 PMprisma.variable.findMany(...)
?