-
Hello all, I read about the "Adding your own Queries and Mutations" but I didn't find any explanation about extending an existing type.
Do you have way? I was thinking to override the schema, I found the code but we should provide a way to merge the schema using for example @graphql-tools/merge |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @b-barry — you should not directly modify the auto-generated GraphQL types, but what you're doing should be possible by adding a field to your config itself. You can then set |
Beta Was this translation helpful? Give feedback.
Hey @b-barry — you should not directly modify the auto-generated GraphQL types, but what you're doing should be possible by adding a field to your config itself. You can then set
admin.disabled: true
on the field to have it hide from the admin UI entirely. And then you could fill the field's value dynamically with hooks / similar, therefore treating it as a "virtual field". We have a demo of this coming out shortly, so keep an eye out!