Replies: 3 comments 3 replies
-
I've created a protoype for this feature. With this it's possible to use |
Beta Was this translation helpful? Give feedback.
-
@roderm was this feature ever merged to main repo ? |
Beta Was this translation helpful? Give feedback.
-
@khanakia it has not been merged. Also I tried to solve this use-case partly with federation, I still had to implement some logic for inputs in this library.
|
Beta Was this translation helpful? Give feedback.
-
What happened?
With GraphQL SDL it's possible to extend a schema, this works well if the extensions are given at compile time. If e.g. as plugin is loaded during runtime, the Schema can be extended, but resolvers can't be added:
What did you expect?
Mutation
Getting the added field over the passed in Context. This would also only work for Types defined in the original schema oder builtin types. Else a
map[string]interface{}
must be used.Query
Adding custom resolver to the Schema (
executableSchema
/executionContext
) to fill manually:Merge Schema
To keep comfort of the generation but still being able to extend during runtime, a merge during runtime would be nice:
versions
gqlgen version
? v0.16.0go version
? 1.17Would love to contribute this feature, but currently no idea where to begin. Is this use case reasonable and wanted by others as well?
Beta Was this translation helpful? Give feedback.
All reactions