dotansimha / dotansimha/graphql-code-generator
Field "x" argument "y" of type "z!" is required, but it was not provided
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
**Describe the bug**
Can't generate typescript-operations from given schema and operations. This schema differs from most generic schemas because all queries and mutations are wrapped in additional level, e.g.:
```graphql
type Query {
Survey: SurveyQuery
}
type SurveyQuery {
about(where: SurveyAboutWhereUniqueInput!): SurveyAbout!
abouts(where: SurveyAboutWhereInput, orderBy: [SurveyAboutOrderByWithRelationInput!], cursor: SurveyAboutWhereUniqueInput, distinct: [SurveyAboutScalarFieldEnum!], skip: Int, take: Int): [SurveyAbout!]
}
```
And operations similllary nested, e.g.:
```graphql
query aboutQuery($where: SurveyAboutWhereUniqueInput!) {
Survey {
about(where: $where) {
...SurveyAboutFlat
}
}
}
```
The same schema and operations without this wrapping object everything is ok, but with it such errors appear:
```
errors: [
Error [GraphQLDocumentError]: Field "updateAbout" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "data" of type "SurveyAboutUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:2:3,
Error [GraphQLDocumentError]: Field "createCategory" argument "data" of type "SurveyCategoryCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:3:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:4:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "data" of type "SurveyCategoryUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:4:3,
Error [GraphQLDocumentError]: Field "deleteCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:5:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:7:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "data" of type "SurveyCommentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:7:3,
Error [GraphQLDocumentError]: Field "createSurvey" argument "data" of type "SurveySurveyCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:9:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:10:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "data" of type "SurveySurveyUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:10:3,
Error [GraphQLDocumentError]: Field "deleteSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:11:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "where" of type "SurveyDocumentsDocumentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "create" of type "SurveyDocumentsDocumentCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "update" of type "SurveyDocumentsDocumentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:12:3,
Error [GraphQLDocumentError]: Field "about" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:3:3,
Error [GraphQLDocumentError]: Field "category" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:5:3,
Error [GraphQLDocumentError]: Field "categoryTranslated" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:7:3,
Error [GraphQLDocumentError]: Field "comment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:9:3,
Error [GraphQLDocumentError]: Field "survey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:14:3,
Error [GraphQLDocumentError]: Field "search" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:15:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:16:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAbout.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "data" of type "SurveyAboutUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:2:3,
Error [GraphQLDocumentError]: Field "createCategory" argument "data" of type "SurveyCategoryCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:3:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:4:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "data" of type "SurveyCategoryUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:4:3,
Error [GraphQLDocumentError]: Field "deleteCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:5:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:7:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "data" of type "SurveyCommentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:7:3,
Error [GraphQLDocumentError]: Field "createSurvey" argument "data" of type "SurveySurveyCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:9:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:10:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "data" of type "SurveySurveyUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:10:3,
Error [GraphQLDocumentError]: Field "deleteSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:11:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "where" of type "SurveyDocumentsDocumentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "create" of type "SurveyDocumentsDocumentCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "update" of type "SurveyDocumentsDocumentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:12:3,
Error [GraphQLDocumentError]: Field "about" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:3:3,
Error [GraphQLDocumentError]: Field "category" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:5:3,
Error [GraphQLDocumentError]: Field "categoryTranslated" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:7:3,
Error [GraphQLDocumentError]: Field "comment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:9:3,
Error [GraphQLDocumentError]: Field "survey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:14:3,
Error [GraphQLDocumentError]: Field "search" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:15:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:16:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputType.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "data" of type "SurveyAboutUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:2:3,
Error [GraphQLDocumentError]: Field "createCategory" argument "data" of type "SurveyCategoryCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:3:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:4:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "data" of type "SurveyCategoryUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:4:3,
Error [GraphQLDocumentError]: Field "deleteCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:5:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:7:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "data" of type "SurveyCommentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:7:3,
Error [GraphQLDocumentError]: Field "createSurvey" argument "data" of type "SurveySurveyCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:9:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:10:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "data" of type "SurveySurveyUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:10:3,
Error [GraphQLDocumentError]: Field "deleteSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:11:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "where" of type "SurveyDocumentsDocumentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "create" of type "SurveyDocumentsDocumentCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "update" of type "SurveyDocumentsDocumentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:12:3,
Error [GraphQLDocumentError]: Field "about" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:3:3,
Error [GraphQLDocumentError]: Field "category" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:5:3,
Error [GraphQLDocumentError]: Field "categoryTranslated" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:7:3,
Error [GraphQLDocumentError]: Field "comment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:9:3,
Error [GraphQLDocumentError]: Field "survey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:14:3,
Error [GraphQLDocumentError]: Field "search" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:15:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:16:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutCountOutputTypeFlat.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "data" of type "SurveyAboutUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:2:3,
Error [GraphQLDocumentError]: Field "createCategory" argument "data" of type "SurveyCategoryCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:3:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:4:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "data" of type "SurveyCategoryUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:4:3,
Error [GraphQLDocumentError]: Field "deleteCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:5:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:7:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "data" of type "SurveyCommentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:7:3,
Error [GraphQLDocumentError]: Field "createSurvey" argument "data" of type "SurveySurveyCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:9:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:10:3,
Error [GraphQLDocumentError]: Field "updateSurvey" argument "data" of type "SurveySurveyUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:10:3,
Error [GraphQLDocumentError]: Field "deleteSurvey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:11:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "where" of type "SurveyDocumentsDocumentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "create" of type "SurveyDocumentsDocumentCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:12:3,
Error [GraphQLDocumentError]: Field "upsertDocumentsDocument" argument "update" of type "SurveyDocumentsDocumentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:12:3,
Error [GraphQLDocumentError]: Field "about" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:3:3,
Error [GraphQLDocumentError]: Field "category" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:5:3,
Error [GraphQLDocumentError]: Field "categoryTranslated" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:7:3,
Error [GraphQLDocumentError]: Field "comment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:9:3,
Error [GraphQLDocumentError]: Field "survey" argument "where" of type "SurveySurveyWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:14:3,
Error [GraphQLDocumentError]: Field "search" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:15:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:16:3,
Error [GraphQLDocumentError]: Field "searchCount" argument "term" of type "String!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutFlat.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "where" of type "SurveyAboutWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:2:3,
Error [GraphQLDocumentError]: Field "updateAbout" argument "data" of type "SurveyAboutUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:2:3,
Error [GraphQLDocumentError]: Field "createCategory" argument "data" of type "SurveyCategoryCreateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:3:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:4:3,
Error [GraphQLDocumentError]: Field "updateCategory" argument "data" of type "SurveyCategoryUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:4:3,
Error [GraphQLDocumentError]: Field "deleteCategory" argument "where" of type "SurveyCategoryWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:5:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "where" of type "SurveyCommentWhereUniqueInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:7:3,
Error [GraphQLDocumentError]: Field "updateComment" argument "data" of type "SurveyCommentUpdateInput!" is required, but it was not provided.
at {path}/api/codegen/fragments/prefixed/SurveyAboutTranslated.graphql:7:3,
... 1625 more items
]
```
**To Reproduce**
See schema, fragments and operations here:
https://codesandbox.io/s/twilight-river-qlpi2
**Environment:**
- OS: MacOS
- `@graphql-codegen/core@2.1.0`:
- NodeJS: 14.13.1
**Additional context**
I use it programmatically, if this matters:
```js
fs.writeFileSync(path.join(p, 'types', 'prefixed.ts'), await codegen({
plugins: [{"typescript-operations": {}}],
pluginMap: {"typescript-operations": typescriptOperationsPlugin},
schema: parse(printSchema(prefixedSchema)),
documents: await loadDocuments([
path.join(p, 'fragments', 'prefixed.graphql'),
path.join(p, 'operations', 'prefixed.graphql')
], { loaders: [ new GraphQLFileLoader() ] })
}))
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.