-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
AST error in generate client when using ClientForwardRefsPlugin #324
Comments
same error |
Can you share some steps to reproduce and codegen version? I just used the plugin on Saleor's schema with no error. Python: 3.12.0 |
@pkucmus we are using Python: 3.9.20 |
I can't reproduce this. Can you add a reproducible example @akshats1998 or @lowzj? › python -V
Python 3.9.20
› ariadne-codegen --version
ariadne-codegen, version 0.14.0
› cat pyproject.toml
[tool.ariadne-codegen]
schema_path = "schema.graphql"
queries_path = "queries.graphql"
include_comments = "none"
target_package_name = "client_forward_refs"
files_to_include = []
fragments_module_name = "client_forward_refs_fragments"
plugins = ["ariadne_codegen.contrib.client_forward_refs.ClientForwardRefsPlugin"] › ariadne-codegen
Selected strategy: client
Using schema from 'schema.graphql'.
Reading queries from 'queries.graphql'.
Using 'client_forward_refs' as package name.
Generating package into '/Users/xxx/ariadne-codegen/tmp'.
Using 'Client' as client name.
Using 'AsyncBaseClient' as base client class.
Coping base client class from '/Users/xxx/ariadne-codegen/ariadne_codegen/client_generators/dependencies/async_base_client.py'.
Generating enums into 'enums.py'.
Generating inputs into 'input_types.py'.
Generating fragments into 'client_forward_refs_fragments.py'.
Comments type: none
Converting fields and arguments name to snake case.
Generating async client.
No files to copy.
Plugins to use: ariadne_codegen.contrib.client_forward_refs.ClientForwardRefsPlugin
Generated files:
__init__.py
async_base_client.py
base_model.py
client.py
client_forward_refs_fragments.py
enums.py
exceptions.py
get_animal_by_name.py
get_animal_fragment_with_extra.py
get_authenticated_user.py
get_complex_scalar.py
get_simple_scalar.py
input_types.py
list_animals.py
list_strings_1.py
list_strings_2.py
list_strings_3.py
list_strings_4.py
list_type_a.py
subscribe_strings.py
unwrap_fragment.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! Currently when we import AriadneClient, it takes up about 400MB due to all the types, schemas. TO solve this we were hoping to use ClientForwardRefPlugin. However, on doing ariadne-codegen after setting the plugin we're getting the following error
The text was updated successfully, but these errors were encountered: