You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I would to start by saying this project is great, and have used it for many years now in production systems, so thank you for your effort!
We are extending the library through internal plugin that adds types into GraphQL schema without developers writing it by themselves.
The first use case of this is filter generation. For example, lets say there is a type with fields which some of have search directive attached:
The plugin finds these fields, and generates inputs for filtering.
We have gotten that far that we mutate the schema, and successfully add the types.
However, we get following error:
merging type systems failed: unable to build object definition: unable to find type go.ourcompany.com/ourproject/graphql/generatedmodel.PolygonGeoFilter
What are we missing? Do we need to do anything else other than call cfg.Models.Add?
The plugin's MutateConfig method contains following code:
This discussion was converted from issue #1540 on January 19, 2022 14:10.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First of all, I would to start by saying this project is great, and have used it for many years now in production systems, so thank you for your effort!
We are extending the library through internal plugin that adds types into GraphQL schema without developers writing it by themselves.
The first use case of this is filter generation. For example, lets say there is a type with fields which some of have
search
directive attached:The plugin finds these fields, and generates inputs for filtering.
We have gotten that far that we mutate the schema, and successfully add the types.
However, we get following error:
What are we missing? Do we need to do anything else other than call cfg.Models.Add?
The plugin's
MutateConfig
method contains following code:The generator main code is following:
What are we missing?
versions
gqlgen version
0.13go version
1.16Beta Was this translation helpful? Give feedback.
All reactions