import { addResolversToSchema } from "@graphql-tools/schema" ; import { IResolvers , IResolverValidationOptions } from "@graphql-tools/utils" ; import { loadConfigSync } from "graphql-config" ; export default function loadSchema ( resolvers , options ? ) { const schema = loadConfigSync ( { } ) . getProject ( "tenant" ) . getSchemaSync ( ) ; return addResolversToSchema ( schema , resolvers , options ) ; }