@apollographql/apollo-tools

  • Version 0.5.1
  • Published
  • 169 kB
  • No dependencies
  • MIT license

Install

npm i @apollographql/apollo-tools
yarn add @apollographql/apollo-tools
pnpm add @apollographql/apollo-tools

Overview

Overview not available.

Index

Functions

function buildServiceDefinition

buildServiceDefinition: (
modules: GraphQLSchemaModule[]
) => GraphQLServiceDefinition;

    function invariant

    invariant: (condition: any, message: string) => void;

      function isDocumentNode

      isDocumentNode: (node: any) => node is any;

        function isNode

        isNode: (maybeNode: any) => maybeNode is any;

          function isNotNullOrUndefined

          isNotNullOrUndefined: <T>(value: T | null | undefined) => value is T;

            Interfaces

            interface GraphQLResolverMap

            interface GraphQLResolverMap<TContext> {}

              index signature

              [typeName: string]: {
              [fieldName: string]:
              | GraphQLFieldResolver<any, TContext>
              | {
              requires?: string;
              resolve: GraphQLFieldResolver<any, TContext>;
              subscribe?: undefined;
              }
              | {
              requires?: string;
              resolve?: undefined;
              subscribe: GraphQLFieldResolver<any, TContext>;
              }
              | {
              requires?: string;
              resolve: GraphQLFieldResolver<any, TContext>;
              subscribe: GraphQLFieldResolver<any, TContext>;
              };
              };

                interface GraphQLSchemaModule

                interface GraphQLSchemaModule {}

                  property resolvers

                  resolvers?: GraphQLResolverMap<any>;

                    property typeDefs

                    typeDefs: DocumentNode;

                      Type Aliases

                      type GraphQLObjectResolver

                      type GraphQLObjectResolver<TSource, TContext> = (
                      source: TSource,
                      fields: Record<string, ReadonlyArray<FieldNode>>,
                      context: TContext,
                      info: GraphQLResolveInfo
                      ) => any;

                        Package Files (7)

                        Dependencies (0)

                        No dependencies.

                        Dev Dependencies (0)

                        No dev dependencies.

                        Peer Dependencies (0)

                        No peer dependencies.

                        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/@apollographql/apollo-tools.

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