apollo-link-schema

  • Version 1.2.5
  • Published
  • 24.5 kB
  • 2 dependencies
  • MIT license

Install

npm i apollo-link-schema
yarn add apollo-link-schema
pnpm add apollo-link-schema

Overview

Use a GraphQL Schema to request data

Index

Classes

class SchemaLink extends ApolloLink {}

    constructor

    constructor({ schema, rootValue, context }: SchemaLink.Options);

      property context

      context: any;

        property rootValue

        rootValue: any;

          property schema

          schema: GraphQLSchema;

            method request

            request: (operation: Operation) => Observable<FetchResult> | null;

              Namespaces

              namespace SchemaLink {}

                interface Options

                interface Options {}

                  property context

                  context?: ResolverContextFunction | Record<string, any>;

                    property rootValue

                    rootValue?: any;

                      property schema

                      schema: GraphQLSchema;

                        type ResolverContextFunction

                        type ResolverContextFunction = (operation: Operation) => Record<string, any>;

                          Package Files (1)

                          Dependencies (2)

                          Dev Dependencies (11)

                          Peer Dependencies (1)

                          Badge

                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/apollo-link-schema.

                          • Markdown
                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/apollo-link-schema)
                          • HTML
                            <a href="https://www.jsdocs.io/package/apollo-link-schema"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>