Mitchell
02/02/2019, 7:54 PMfeed() function in Query.js solves the error. Seems the problems is in this change:
async function feed(parent, args, ctx, info) {
const { filter, first, skip } = args // destructure input arguments
const where = filter
? { OR: [{ url_contains: filter }, { description_contains: filter }] }
: {}
const queriedLinks = await ctx.db.query.links({ first, skip, where })
return {
linkIds: queriedLinks.map(link => link.id),
count
}
}
https://www.howtographql.com/react-apollo/7-filtering-searching-the-list-of-links/
This looks suspect to me. The original code queries Links as: await context.prisma.links(...). While the new change queries links with: await ctx.db.query.links(...)