Back to Apollo Client

Api Report Link Schema.Api

.api-reports/api-report-link_schema.api.md

3.14.11.5 KB
Original Source

API Report File for "@apollo/client"

Do not edit this file. It is a report generated by API Extractor.

ts

import { ApolloLink } from '@apollo/client/link';
import type { GraphQLSchema } from 'graphql';
import { Observable } from 'rxjs';

// @public (undocumented)
export namespace SchemaLink {
    export interface Options {
        context?: SchemaLink.ResolverContext | SchemaLink.ResolverContextFunction;
        rootValue?: any;
        schema: GraphQLSchema;
        validate?: boolean;
    }
    export type ResolverContext = Record<string, any>;
    export type ResolverContextFunction = (operation: ApolloLink.Operation) => SchemaLink.ResolverContext | PromiseLike<SchemaLink.ResolverContext>;
    // (undocumented)
    export namespace SchemaLinkDocumentationTypes {
        export function ResolverContextFunction(operation: ApolloLink.Operation): SchemaLink.ResolverContext | PromiseLike<SchemaLink.ResolverContext>;
    }
}

// @public
export class SchemaLink extends ApolloLink {
    constructor(options: SchemaLink.Options);
    // (undocumented)
    context: SchemaLink.Options["context"];
    // (undocumented)
    request(operation: ApolloLink.Operation): Observable<ApolloLink.Result>;
    // (undocumented)
    rootValue: SchemaLink.Options["rootValue"];
    // (undocumented)
    schema: SchemaLink.Options["schema"];
    // (undocumented)
    validate: boolean;
}

// (No @packageDocumentation comment for this package)