Hot reload or remove GraphQL Server (or parameters) #4902
Unanswered
alexander161198
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I'm not sure how you've built your dynamic schema, but when using Currently there is no documentation on this, but you can read this blog post entry as a primer and look at this example. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This very actual problem for me to. I don't undestend how ITypeModule can help me. We tried use ITypeModule but it not resolve our task. On example i has classes:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Now my project is doing the following:
When the service starts, query and mutation classes are automatically generated based on the database context. These classes are then added to the application assembly. So, I can make GraphQL queries and mutations to existing database entities.
When AddGraphQLStore method is:
What I want to:
When updating the database (for example, adding a new table), don't restart the service, but use the new method of reloading the context and regenerating query and mutation classes.
My thoughts on how to do this:
Remove all services associated with the GraphQL from the IServiceCollection and run AddGraphQLStore again.
Is there a method opposite to AddGraphQLServer method (that delete GaphQL server from DI) or something similar?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions