Prisma-client: Field 'experiencesConnection' of type 'ExperienceConnection' must have a sub selection



I’m using prisma-client to try and make a pagination but am not sure how to go on with the resolver:

export const experiences = async (
  args: { language: "es" | "en"; currency: "USD" },
  ctx: Context
) => {
  try {
    const res = await ctx.db.experiencesConnection({
      where: {
        translation: {
          language: {
            slug: args.language
        price: {
          currency: {
            slug: args.currency
    return res;
  } catch (err) {
    console.error("ERROR: ", err);
    return err;


#import ExperienceConnection from './generated/prisma/prisma.graphql'

type Query {
  experiences(language: String!, currency: String!): ExperienceConnection

But when running it in the playground I get:

What am I doing wrong?

Building resolvers for linksConnection query and other nested relations

This is a current limitation or Prisma Client, which is documented and explained here: We’re currently discussing possible solutions.


This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.