HookPluginFactory: ((buildOptions) => PostGraphilePlugin)

Type declaration

    • (buildOptions): PostGraphilePlugin
    • This is the function type that must be used when developing Hook Plugin factory functions.

      Parameters

      • buildOptions: PostGraphileOptions<Request, Response> | undefined

      Returns PostGraphilePlugin

      Example

         const subscriptionAuthorizationHookFactory = (
      buildOptions: PostGraphileOptions<Request, Response> | undefined,
      ): PostGraphilePlugin => {
      return {
      // returns a PostGraphilePlugin
      }
      }

Generated using TypeDoc