-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
[BUG] GraphQL type
s not being generated
#76
Comments
@jhnnsrs I figured it would be default for the |
@jakevollkommer hi there! Thanks for submitting the issue! Generally there is an 'Objects plugin' that generates the types from the schema that you could add and that would generate models from that. M However the main idea if you want to use turms on the client side is to go through the 'documents' driven API Generation (utilizing the fragments, operations and funcs) plugins. Not sure if this is what you are looking for though? What would you like to achieve with the objects? However for most usecases I would recommend checking |
Thanks for the response! I actually managed to figure out to use the plugin. I had to dig through the source to eventually figure it out. Our use case is essentially type sharing between the typescript and python parts of our backend, specifically where the python bits contain LLM operations that use pydantic classes to define LLM tools I will check out the documents idiom as well! |
Hey sorry for the long wait for the reply! Would you care for explaining where you got stuck? I am planning to "update" / "finally freaking write" the documentation in the next couple of weeks and would love some feedback, as well as your use case! :) |
Using a minimum configration, I can't get the
type
to generate pydantic classes in the output file.graphql.config.yml
schema.graphql
api/schema.py
As you can see, I get enums and inputs, but no types.
More info:
Python 3.12.3
turms 0.5.0
pydantic 1.10.16
pydantic_core 2.18.2
graphql-core 3.2.3
black 24.4.2
isort 5.13.2
The text was updated successfully, but these errors were encountered: