Corjen
12/13/2018, 9:21 AMsenorcodecat
12/13/2018, 12:50 PMHyo
12/13/2018, 3:48 PM{
where: { id: userId },
data: { friends:
{ connect:
AND [
{
id: friendId
},
NOT: { id: userId }
]
} },
},
So that I don’t want to add current user as a friend inside the query.Daniel Mahon
12/13/2018, 3:50 PM{ connect: { id: friendId } }
Daniel Mahon
12/13/2018, 3:50 PMNishchit
12/13/2018, 5:20 PMdnbkr
12/13/2018, 5:32 PMwoss
12/13/2018, 5:42 PMprisma.graphql
to schema.graphql
?
I've tried
# import * from '../generated/prisma.graphql'
type Mutation {
updateUser(data: UserUpdateInput!, where: UserWhereUniqueInput!): User
}
woss
12/13/2018, 5:43 PMgraphqlgen
get stuck on Mutation
I've commented on it here, https://github.com/prisma/graphqlgen/issues/310Kyle Kurtz
12/13/2018, 7:08 PMdocker-compose
copied directly from the docs. I wasn't able to do a prisma deploy
without first adding @id
to the id field of the User
type created by the init. Is this expected? Is mongo a good choice for a db backend if it doesn't really matter from a business perspective or would postgres be better?andykay
12/13/2018, 7:38 PMmanagement secret
? in this page it talks about just secret
https://www.prisma.io/docs/prisma-client/setup/generating-the-client-rsc1/andykay
12/13/2018, 7:39 PMGeoff
12/14/2018, 12:16 AMNick
12/14/2018, 9:24 AMyolen
12/14/2018, 9:52 AMconst db = new Prisma({
endpoint: `http://${process.env.PRISMA_SERVICE_NAME}:${
process.env.PRISMA_PORT
}`,
secret: process.env.PRISMA_SECRET,
})
but in the generated javascript client this seems to be hardcoded: exports.Prisma = prisma_lib_1.makePrismaClientClass({
typeDefs,
models,
endpoint: `<http://localhost:${process.env[%22PRISMA_PORT%22]}|http://localhost:${process.env["PRISMA_PORT"]}>`,
secret: `${process.env["PRISMA_SECRET"]}`
});
exports.prisma = new exports.Prisma();
leo
12/14/2018, 10:30 AMpllumh
12/14/2018, 2:04 PMpllumh
12/14/2018, 2:04 PMtype UserProject {
id: ID! @unique
member: User!
project: Project!
role: ProjectRoles!
}
xiaoqf10
12/14/2018, 2:06 PMxiaoqf10
12/14/2018, 2:06 PMxiaoqf10
12/14/2018, 2:40 PMed
12/14/2018, 6:52 PMTangoJuliett
12/14/2018, 7:34 PMfaure
12/14/2018, 9:18 PMSean Urgel
12/15/2018, 4:56 AMschema.graphql
file. Mine is getting too bigHeade
12/15/2018, 8:08 AMHeade
12/15/2018, 8:08 AMHeade
12/15/2018, 8:08 AMHeade
12/15/2018, 8:09 AMpllumh
12/15/2018, 3:04 PMCuidGCValue(ID)
.. then it started returning normaly as it should ID
now its coming as StringIdGCValue(ID)
?