mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 01:28:32 +00:00
Use subschemas instead of typeDefs (#1336)
This commit is contained in:
parent
cf14c18d6e
commit
62f1567277
1 changed files with 6 additions and 1 deletions
|
|
@ -458,7 +458,12 @@ const createStitching: (redis: RedisInstance, logger: FastifyLoggerInstance) =>
|
|||
async (schemas: ValidationInput) => {
|
||||
return printSchema(
|
||||
stitchSchemas({
|
||||
typeDefs: schemas.map(schema => trimDescriptions(parse(schema.raw))),
|
||||
subschemas: schemas.map(schema =>
|
||||
buildASTSchema(trimDescriptions(parse(schema.raw)), {
|
||||
assumeValid: true,
|
||||
assumeValidSDL: true,
|
||||
}),
|
||||
),
|
||||
}),
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue