How can I reflect my newly created mutation in graphql playground

Version: 0.51 I've just added a new table in metadata schema using migration, it worked fine. Now, I've created couple of queries and mutations for that table but after restarting server it seems not to be reflected in graphql playground http://localhost:3000/graphql. As per the doc, the schema of query and mutation should be reflected on server restart. I tried to clean cache of nx and also browser cache, but it didn't work. Do I need to perform any other thing to see it reflected? What I'm doing wrong here? @Prastoin
6 Replies
Rishi S
Rishi SOP4d ago
Any insight? @Weiko @thomast @charles @prastoin?
Prastoin
Prastoin4d ago
Hello @Rishi S, please avoid direct ping especially during the weekends Have you been able to use the created mutation ? Are you sure this is an API playground synchronization issue ?
Rishi S
Rishi SOP4d ago
I'll tell you what we want to achieve & the core problem is stated at the end Also, I've create a comment module where I've entity, controller, service, and resolver files as you can see in the attached image. What I want is, I want to access the mutations and queries mentioned in th comment.resolver.ts file I did npx nx start twenty-server in order to restart the server (also restarted the worker) Core problem: But when I go to the http://localhost:3000/graphql, then the queries and mutations belonging to the comment module aren't appearing.
No description
Prastoin
Prastoin4d ago
What is your need initially ? I'm not sure to understand why you're not creating a custom object model comment You might need to re-generate graphql codegen if manually adding files to the cb
Rishi S
Rishi SOP4d ago
Hey Prastoin, I've resolved the issue. The issue was that we hadn't registered our "comment" component in the core-engine.module.ts file, which is why the GraphQL schema was not reflected. But thanks for you're time to look into it, Prastoin. I appreciate you spending some time over the weekends!!
Prastoin
Prastoin4d ago
Congrats ! Enjoy coding

Did you find this page helpful?