I would like to add schema stitching feature for us the users of microservice architecture.
this feature is supported in apollo server graphql.
we need this feature as soon as possible
You can use all the apollo and standard GraphQL tooling with TypeGraphQL:
import { mergeSchemas, ApolloServer } from "apollo-server";
import { buildSchema } from "type-graphql";
async function main() {
const firstSchema = await buildSchema({
resolvers: [FirstResolver],
});
const secondSchema = await buildSchema({
resolvers: [SecondResolver],
});
const schema = mergeSchemas({
schemas: [firstSchema, secondSchema],
});
const server = new ApolloServer({ schema });
await server.listen();
}
Most helpful comment
You can use all the apollo and standard GraphQL tooling with TypeGraphQL: