Fred The Doggy
12/24/2021, 11:09 PMprisma.server.create({
data: {
id: guild.id,
groups: JSON.stringify([]),
},
});
**Edit**: Nevermind
Fred The Doggy
12/24/2021, 11:09 PMTS2322: Type '{ id: string; groups: string; }' is not assignable to type '(Without<ServerCreateInput, ServerUncheckedCreateInput> & ServerUncheckedCreateInput) | (Without<...> & ServerCreateInput)'. Object literal may only specify known properties, and 'groups' does not exist in type '(Without<ServerCreateInput, ServerUncheckedCreateInput> & ServerUncheckedCreateInput) | (Without<...> & ServerCreateInput)'
Fred The Doggy
12/24/2021, 11:09 PMmodel Server {
id String @id
groups String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Fred The Doggy
12/24/2021, 11:09 PMFishie
12/25/2021, 11:48 AMJin
12/25/2021, 2:10 PMKristofer Pervin
12/25/2021, 5:24 PMPrisma.{Model}UpdateArgs
) into GraphQL types that don't conflict with Prisma client operations? Having to create them by hand using classes is time consuming for DTO and Services in NestJS, and various community generators dump everything into a specific folder that it messes up the nest generate resource
structureKristofer Pervin
12/25/2021, 5:26 PMprisma-nestjs-graphql
generator and seem to get an error with comparing typesRune Jørgensen
12/25/2021, 8:31 PM?
) to NULL in prisma (meaning I had to use undefined
in my TypeScript when "unsetting"/"nulling" a value), or did I misunderstand something 🙂? It seems to work fine now though (v. 3.7.0) , but then now `undefined´ doesn't work 🤔. Is it just me being insane, or does anyone know what I'm rambling about 😬?Anony Mous
12/25/2021, 9:40 PMAnony Mous
12/25/2021, 9:40 PMAnony Mous
12/25/2021, 9:41 PMAnony Mous
12/25/2021, 9:41 PMAnony Mous
12/25/2021, 9:42 PMAnony Mous
12/25/2021, 9:42 PMAnony Mous
12/25/2021, 9:42 PMAnony Mous
12/25/2021, 9:43 PMAnony Mous
12/25/2021, 9:43 PMJakub Figlak
12/25/2021, 10:53 PMSpencer Kifell
12/26/2021, 3:01 AMSpencer Kifell
12/26/2021, 3:01 AMSpencer Kifell
12/26/2021, 3:02 AMexpect(tmpUser instanceof user).toBe(true);
Spencer Kifell
12/26/2021, 3:02 AMSpencer Kifell
12/26/2021, 3:03 AMSzymon Hrabia
12/26/2021, 8:06 PMasync findOneBy<T extends Prisma.UserSelect>(
where: Prisma.UserWhereInput,
select?: T,
) {
return this.prisma.user.findFirst({
where,
select,
});
}
Juan Carlos Blanco Delgado
12/27/2021, 4:42 AMTaylor Cantwell
12/27/2021, 5:51 AM.findUnique({
where: {
id: tweet.id,
},
})
.tweetLikes();
Aaron Waller
12/27/2021, 12:07 PMAaron Waller
12/27/2021, 12:09 PMtype Mutation {
createPost(postinput: CreatePostInput!): Post!
}
input CreatePostInput{
name: String
content: String
}