Skip to content
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

Custom operations generated files doesn't import custom scalars #311

Open
Cikmo opened this issue Aug 28, 2024 · 1 comment
Open

Custom operations generated files doesn't import custom scalars #311

Cikmo opened this issue Aug 28, 2024 · 1 comment

Comments

@Cikmo
Copy link

Cikmo commented Aug 28, 2024

When using custom operations, the files generated doesn't include the import statements for custom scalars that have been defined.

@Cikmo
Copy link
Author

Cikmo commented Sep 6, 2024

Someone deleted their comment, but to give some more context, I have this in my pyproject.toml:

[tool.ariadne-codegen.scalars.DateTime]
type = "pydantic.AwareDatetime"

When not using custom operations, this works great. However when it generates the files for the custom operations, this does not get imported in those spesific files, so it is impossible to import the module without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant