Skip to content

Commit

Permalink
chore(core): Added comment to explain what the passed schema is
Browse files Browse the repository at this point in the history
  • Loading branch information
sonntag-philipp committed Dec 6, 2024
1 parent ff2efe7 commit 6d09ceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/plugin/vendure-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export interface APIExtensionDefinition {
/**
* @description
* Extensions to the schema.
* Passes the current schema as an optional argument, allowing the extension to be based on the existing schema.
*
* @example
* ```ts
Expand All @@ -97,6 +98,8 @@ export interface APIExtensionDefinition {
* @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.
*
* Passes the current schema as an optional argument, allowing the resolver to be based on the existing schema.
*/
resolvers?: Array<Type<any>> | (() => Array<Type<any>>) | ((schema?: GraphQLSchema) => Array<Type<any>>);
/**
Expand Down

0 comments on commit 6d09ceb

Please sign in to comment.