Use subschemas instead of typeDefs (#1336)

This commit is contained in:
Kamil Kisiela 2023-02-10 12:53:26 +01:00 committed by GitHub
parent cf14c18d6e
commit 62f1567277
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
}),
),
}),
);
},