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
Is it possible to load schema files from a library dependency defined in pom.xml? I have some common types used by all microservices (federated together using Apollo gateway) and want these defined in a library included in all other projects. Starting a microservice without defining the types within that project itself results in the error:
The field type 'CommonType' is not present when resolving type 'OtherType'
I've defined graphql.tools.schema-location-pattern as graphql/*.graphqls in application.yml, and this is the path (under src/main/resources) that schema files are in all projects.
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
-
Is it possible to load schema files from a library dependency defined in pom.xml? I have some common types used by all microservices (federated together using Apollo gateway) and want these defined in a library included in all other projects. Starting a microservice without defining the types within that project itself results in the error:
The field type 'CommonType' is not present when resolving type 'OtherType'
I've defined
graphql.tools.schema-location-pattern
asgraphql/*.graphqls
inapplication.yml
, and this is the path (under src/main/resources) that schema files are in all projects.Beta Was this translation helpful? Give feedback.
All reactions