We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
argTypeMap
Describe the bug In the old version of Mesh, we were defining a custom type via the base schema like so:
argTypeMap: id: ID! contentType: "ReciprocityContentType!"
However this isn't possible in the new version of Mesh. Nor does it seem that argTypeMap likes references to files:
argTypeMap: id: ID! contentType: ./src/json-schemas/reciprocity-api/base-schema.json#/definitions/ReciprocityContentType
(Tried in quotes too)
🕸️ - Server: Generating Mesh schema... 🕸️ - Server: TypeError[Query.reciprocityContent.contentType]: Syntax Error: Cannot parse the unexpected character ".". error Command failed with exit code 1.
ReciprocityContentType is an enum type.
ReciprocityContentType
Is there a way I'm not seeing to do this?
Expected behavior A file path can be provided to specify a custom type.
Environment:
"@graphql-mesh/cli": "^0.38.0", "@graphql-mesh/graphql": "^0.18.10", "@graphql-mesh/json-schema": "^0.18.3", "@graphql-mesh/transform-naming-convention": "^0.6.60", "@graphql-mesh/transform-resolvers-composition": "^0.10.10",
node:14.15-alpine
The text was updated successfully, but these errors were encountered:
https://the-guild.dev/graphql/mesh/docs/handlers/json-schema#manual-declare The new API is documented here. It supports references like;
contentType: $ref: ./src/json-schemas/reciprocity-api/base-schema.json#/definitions/ReciprocityContentType
Feel free to create a new issue if it still persists.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
In the old version of Mesh, we were defining a custom type via the base schema like so:
However this isn't possible in the new version of Mesh. Nor does it seem that
argTypeMap
likes references to files:(Tried in quotes too)
ReciprocityContentType
is an enum type.Is there a way I'm not seeing to do this?
Expected behavior
A file path can be provided to specify a custom type.
Environment:
node:14.15-alpine
The text was updated successfully, but these errors were encountered: