Is there an easy way to expose the Prisma client’s...
# orm-help
c
Is there an easy way to expose the Prisma client’s pagination options (e.g.
first, last, skip, after, before
) on the GraphQL schema/resolvers? Tried doing something like
resources: (parent, args, ctx, info) => prisma.resources(args, info),
in my resolver and
type Query { resources: [Resource] }
in my schema but the graphQL playground does not show any filter/sort options. Do I need to do something like
type Query { resources(first, last, blah, blah...): [Resource] }
in my schema for each query?