Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t.crud.~ies (for list) is not work #1088

Open
devdany opened this issue May 17, 2021 · 0 comments
Open

t.crud.~ies (for list) is not work #1088

devdany opened this issue May 17, 2021 · 0 comments

Comments

@devdany
Copy link

devdany commented May 17, 2021

version:
prisma: 2.21.0
nexus-plugin-prisma: 0.34.1

const defaultQueries = queryType({
  definition: (t) => {
    // ok
    t.crud.adsProducts({
      filtering: true,
      ordering: true,
    });
    // ok
    t.crud.adsProduct({
    });
    // ok
    t.crud.eventCategory({
      description: '카테고리 정보',
    });
   // error
    t.crud.eventCategories()
  },
});

this is error message
(property) eventCategories: (opts: {
type: "ERROR: No subset types are available. Please make sure that one of your GraphQL type is a subset of your t.model('')";
} & {
alias?: undefined;
resolve?: CustomFieldResolver<...> | undefined;
computedInputs?: LocalComputedInputs<...> | undefined;
} & NexusGenPluginFieldConfig<...> & CommonFieldConfig & {
...;
}) => NexusPrismaFields<...>

How can i handle resolver name in irregular deformation for plural word?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant