Setu-TS
    Preparing search index...

    Class GraphqlService

    GraphQL service implementation.

    Implements

    Index
    • Parameters

      • runtime: GraphqlRuntime
      • schema: GraphqlSchemaLike
      • options: {
            buildContext?: (input: GraphqlContextInput) => unknown;
            documentCacheSize: number;
            endpoint: string;
            formatError?: (error: unknown) => unknown;
            introspection: boolean;
            logger?: GraphqlLogger;
            maskInternalErrors: boolean;
            maxDepth: number;
            maxNodes?: number;
            rootValue?: unknown;
            serviceRegistry: IServiceRegistry;
            validationRules?: unknown[];
        }
        • OptionalbuildContext?: (input: GraphqlContextInput) => unknown
        • documentCacheSize: number
        • endpoint: string
        • OptionalformatError?: (error: unknown) => unknown
        • introspection: boolean
        • Optionallogger?: GraphqlLogger

          Sink for masked internal errors. Supplied by the plugin from IPluginContext.logger; IRequestContext carries no logger, so this is the only path by which a masked error reaches an operator.

        • maskInternalErrors: boolean
        • maxDepth: number
        • OptionalmaxNodes?: number

          Field budget; 0 or omitted disables the rule. Optional rather than required because the plugin option it mirrors defaults to off, so a caller constructing this service directly should not have to opt out.

        • OptionalrootValue?: unknown
        • serviceRegistry: IServiceRegistry

          Plugin-level registry (for WS subscription context).

        • OptionalvalidationRules?: unknown[]

      Returns GraphqlService