Skip to content

[ID!] type incorrectly treated as a scalar in custom_queries.py #354

Open
@multimeric

Description

@multimeric

An MRE can be found here: https://github.com/multimeric/AriadneCodegenBug.

In summary, a schema such as:

type Query {
  boards(
    ids: [ID!]
  ): [String]
}

Incorrectly produces:

class Query:
    @classmethod
    def boards(cls, *, ids: Optional[str] = None) -> GraphQLField:
        ...

ids should be list[str] or similar, and not a scalar Optional[str].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions