`[ID!]` type incorrectly treated as a scalar in `custom_queries.py`
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].
BUMP
can we have the fix for this in the next release please? thanks
can we have the fix for this in the next release please? thanks
https://github.com/mirumee/ariadne-codegen/pull/363 You have to build locally the branch above and use the snapshot version. This repository is kinda abandoned
@stivens thanks for getting back. does this mean this package will not have any further support going forward? thank you
I dont know. I cant know
Hi, it is fixed in the 0.16.0 version. It will generate function code like:
def boards(cls, *, ids: Optional[List[str]] = None) -> GraphQLField: