THpubs
12/08/2018, 6:07 AMartindaniel
12/08/2018, 11:10 AMSubscription: {
userUpdate: {
subscribe: async (parent, args, context) => {
const { userId } = args;
return context.prisma.$subscribe
.user({
id: userId,
mutation_in: ["UPDATED"]
})
.node();
},
resolve: payload => {
return payload;
}
}
}
subscription {
userUpdate(userId:"5c0b97f4be07770009dad41f") {
id
posts {
id
}
}
}
The problem is that the subscription doesn't resolve relationship fields. For example posts
returns null. Is this intended behavior or am I missing something? I'm using docker with Prisma 1.22 and the mongo db connector.Seun LanLege
12/08/2018, 1:23 PMSeun LanLege
12/08/2018, 1:23 PMOwen Garland
12/08/2018, 3:19 PMOwen Garland
12/08/2018, 3:20 PMOwen Garland
12/08/2018, 4:24 PMJustinR
12/08/2018, 6:41 PMChas
12/08/2018, 11:39 PMNick
12/09/2018, 2:08 PMKenJazzy
12/09/2018, 3:36 PMJake Ranallo
12/10/2018, 7:44 AMmezie
12/10/2018, 10:30 AMsiyfion
12/10/2018, 1:53 PMseed.graphql
file, is there?siyfion
12/10/2018, 1:53 PMxiaoqf10
12/10/2018, 2:07 PMvdiaz1130
12/10/2018, 2:24 PM<https://www.prisma.io/forum/t/okgrow-graphql-scalars-and-graphqljson-not-working/5303>
markus_str
12/10/2018, 3:30 PMccouchot
12/10/2018, 6:51 PMprisma login
from behind a company proxy, after having set HTTP_PROXY and HTTPS_PROXY env variables but still no luck returning the following error... Been driving me crazy for hours 😕 Any help would be greatly appreciated !hassank
12/10/2018, 8:07 PMsf
12/10/2018, 8:28 PMcontext.db.query.links({ where: { id_in: parent.linkIds } }, info)
and I'm not following how that can maintain the order specified in the original query.rohit
12/10/2018, 8:52 PMKyleG
12/10/2018, 9:28 PM0
it'll be ignored and not sent in the request to the server?function t0(input) {
return !!(input || input === 0);
}
Gaurav
12/10/2018, 10:17 PMvdiaz1130
12/11/2018, 12:56 AMconst prisma = new Prisma({
typeDefs: 'src/generated/prisma.graphql',
endpoint: process.env.PRISMA_ENDPOINT,
secret: process.env.PRISMA_SECRET
})
When using graphql gen, that Prisma instance is created for you. Anyone know how to pass the secret to that instance?vdiaz1130
12/11/2018, 12:59 AMexport const Prisma = makePrismaClientClass<ClientConstructor<Prisma>>({
typeDefs,
models,
endpoint: `${process.env["PRISMA_ENDPOINT"]}`,
secret: `${process.env["PRISMA_SECRET"]}`
});
export const prisma = new Prisma();
CCBCodeMonkey
12/11/2018, 4:41 AMCCBCodeMonkey
12/11/2018, 4:41 AMgraphql get-schema -p prisma
no longer generates my prisma.graphql fileCCBCodeMonkey
12/11/2018, 4:41 AMCCBCodeMonkey
12/11/2018, 4:50 AM