ali
03/04/2021, 7:25 PMДенис Батура
03/04/2021, 10:09 PMFilippo Barcellos
03/04/2021, 10:54 PMmodel User {
id Int @id @default(autoincrement())
email String @unique
password String
username String
bio String?
image String?
posts Post[]
followedBy User[] @relation("UserFollows")
following User[] @relation("UserFollows")
}
I'm trying to update like this but is not working. I'm pretty sure I messed up somewhere
await prisma.user.update({
where: {
id: userLogged,
},
data: {
following: {
id: //user to be followed
},
},
});
hoosan L
03/04/2021, 11:20 PMAndrew C
03/05/2021, 2:58 AMNothing.
03/05/2021, 10:04 AMprisma.tablename.updateMany({
where: { // some id },
data: { emails: {
set: [{ id: '<mailto:abdul@email.com|abdul@email.com>' }]
} }
})
I was getting an error that "emails" field doesn't exist. But it does exist at the prisma level. It also work with 'create' and 'connect' when using the create method.Manish
03/05/2021, 11:05 AMNatalia
Sting Alleman
03/05/2021, 4:24 PMAlex Reyne
03/06/2021, 4:18 PMAlex Reyne
03/06/2021, 4:18 PMKishan Das
03/07/2021, 5:15 PMKishan Das
03/07/2021, 5:16 PMDavid
03/08/2021, 5:33 AMDavid
03/08/2021, 6:53 AMVasu Sengunthar
03/08/2021, 10:36 AMEthan Zoller
03/08/2021, 10:01 PMRobert
03/09/2021, 7:42 AMconst count = await db.recipe.count({ where, distinct })
It passes type check but gives me an error
Error: Unknown arg `distinct` in distinct for type AggregateRecipe. Did you mean `select`?
I have a function that optionally takes a distinct
param for instance to select only 1 recipe per author (distinct: 'authorId'
)
The function is paginated so I'd like to know how many total recipes (distinct by authorId) there are in that case!Sandeep Raparthi
03/09/2021, 8:12 AMNatalia
Bård
03/09/2021, 1:43 PMsanyam pandey
03/10/2021, 10:17 AMsanyam pandey
03/10/2021, 10:17 AMNatalia
ryan
03/10/2021, 10:01 PM$transaction
API fits in, and more.
11 am EST / 5 pm CET
Hope to see you there!
Dale Watson
03/11/2021, 1:34 AMPhilipp Humburg
03/11/2021, 6:33 AMSlackbot
03/11/2021, 10:12 AMLucas
03/11/2021, 10:55 AMNexus
? Who should we reach out if we are willing to help? Nexus is awesome but seeing the lack of documentation, examples, issues response it doesn't seems to be 100% ready to be used in production yet? Anyone has any thoughts on that or is using it in production? I am starting a new project and thinking between using nexus, type-graphql or graphql.js