Error for scalar schema for remote service
Issue #14
resolved
I have scenario where I have two GraphQL schema on two different services and these schema I'm stitching on a GW service. We build the schema on the gateway at runtime using the introspection and merge them.
QueryExecutorSchemaSource.builder[Object]
.namespace(nameSpace)
.schemaLoader(new HttpRemoteIntrospectionLoader(....
.remoteRetriever( new HttpRemoteRetriever(......
.links(buildLinks(m))
.queryFieldRenames(buildQueryFieldRenames(m))
.mutationFieldRenames(buildMutationAliases(m))
.typeRenames(buildTypeRenames(m))
.documentMapperFactory(buildDocumentMapperFactory(m))
.build
There are few scalar schema on these services which the GW doesn't recognise so it throw error. So is there a need for the gateway to understand these types. Since it's just fetches and passes the data along?
Comments (2)
-
reporter -
- changed status to resolved
Resolved with: https://bitbucket.org/atlassian/graphql-braid/pull-requests/120/add-scalars-to-typeregistry-when-stitching/diff in version 0.23.0
- Log in to comment
provided a work around here : https://bitbucket.org/atlassian/graphql-braid/pull-requests/118/fix-dummyscalarimplementation/diff