Skip to content

Instantly share code, notes, and snippets.

@EdgardoRodriguezSolano
Created May 26, 2020 03:47
Show Gist options
  • Save EdgardoRodriguezSolano/73a25925e5604a6815ab5ef8c8cbb0cf to your computer and use it in GitHub Desktop.
Save EdgardoRodriguezSolano/73a25925e5604a6815ab5ef8c8cbb0cf to your computer and use it in GitHub Desktop.
GraphQL resolver function
function articulo(parent, args, context) {
return context.prisma.categoria({ id: parent.id}).articulo({
where: where(args),
skip: args.skip,
first: args.first});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment