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
It does not handle List input type correctly
List
with
plugins = ["ariadne_codegen.contrib.extract_operations.ExtractOperationsPlugin"]
in my schema.graphql I have mutation like this
schema.graphql
type Mutation { ... stagedUploadsCreate(input: [StagedUploadInput!]!): StagedUploadsCreatePayload ...
which generates Mutation.staged_uploads_create class like this:
Mutation.staged_uploads_create
@classmethod def staged_uploads_create( cls, input: StagedUploadInput ) -> StagedUploadsCreatePayloadFields: arguments: Dict[str, Dict[str, Any]] = { "input": {"type": "StagedUploadInput!", "value": input} # This input.type is incorrect # "input": {"type": "[StagedUploadInput!]!", "value": input} This type is correct } cleared_arguments = { key: value for key, value in arguments.items() if value["value"] is not None } return StagedUploadsCreatePayloadFields( field_name="stagedUploadsCreate", arguments=cleared_arguments )
then, when executing it sends wrong type. Correct should be [StagedUploadInput!]!
[StagedUploadInput!]!
mutation stagedUploadsCreate($input_0: StagedUploadInput!) { stagedUploadsCreate(input: $input_0) { stagedTargets { url resourceUrl parameters { name value } } } }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
It does not handle
List
input type correctlywith
in my
schema.graphql
I have mutation like thiswhich generates
Mutation.staged_uploads_create
class like this:then, when executing it sends wrong type. Correct should be
[StagedUploadInput!]!
The text was updated successfully, but these errors were encountered: