Moritz
04/03/2018, 2:19 PMnilan
04/03/2018, 3:25 PMMoritz
04/03/2018, 3:31 PMexport const Timeline = {
posts: async (parent, args, ctx: Context, info) => {
console.log("Parent: " + JSON.stringify(parent));
console.log("args: " + JSON.stringify(args));
const { after, id } = args;
..... fetch the posts according to a custom rule .....
};
Moritz
04/03/2018, 3:33 PMparent
argument shows that the timeline query has already queried all posts. via the ` posts(....)`prisma resolver defined in generated/prisma.graphql
.Moritz
04/03/2018, 3:34 PMnilan
04/03/2018, 3:35 PMMoritz
04/03/2018, 3:38 PMnilan
04/03/2018, 3:39 PMMoritz
04/03/2018, 3:56 PMMoritz
04/03/2018, 3:56 PM