From ff2efe7c5eaca3e588cc083a26c7f01e4bf603cb Mon Sep 17 00:00:00 2001 From: Philipp Sonntag Date: Fri, 6 Dec 2024 09:11:43 +0100 Subject: [PATCH] chore(core): Made the schema argument optional --- packages/core/src/plugin/vendure-plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/plugin/vendure-plugin.ts b/packages/core/src/plugin/vendure-plugin.ts index 6f74f90408..45c046c976 100644 --- a/packages/core/src/plugin/vendure-plugin.ts +++ b/packages/core/src/plugin/vendure-plugin.ts @@ -92,13 +92,13 @@ export interface APIExtensionDefinition { schema?: | DocumentNode | (() => DocumentNode | undefined) - | ((schema: GraphQLSchema) => DocumentNode | undefined); + | ((schema?: GraphQLSchema) => DocumentNode | undefined); /** * @description * An array of resolvers for the schema extensions. Should be defined as [Nestjs GraphQL resolver](https://docs.nestjs.com/graphql/resolvers-map) * classes, i.e. using the Nest `\@Resolver()` decorator etc. */ - resolvers?: Array> | (() => Array>) | ((schema: GraphQLSchema) => Array>); + resolvers?: Array> | (() => Array>) | ((schema?: GraphQLSchema) => Array>); /** * @description * A map of GraphQL scalar types which should correspond to any custom scalars defined in your schema.