/** * `execute.ts` is the equivalent of `graphql-js`'s `src/execution/execute.js`: * it follows the same structure and same function names. * * The implementation of each function is very close to its sibling in `graphql-js` * and, for the most part, is just adapted for reactive execution (dealing with `Observable`). * Some functions are just copy-pasted because they did not require any change * but could not be imported from `graphql-js`. * Some functions are not present because they could be imported from `graphql-js`. */ import { Observable } from "rxjs"; import { ExecutionResult, DocumentNode, GraphQLSchema, GraphQLFieldResolver, ExecutionArgs } from "graphql"; import { ExecutionResultDataDefault } from 'graphql/execution/execute'; import Maybe from 'graphql/tsutils/Maybe'; /** * Implements the "Evaluating requests" section of the GraphQL specification. * * Returns a RxJS's `Observable` of `ExecutionResult`. * * Note: reactive equivalent of `graphql-js`'s `execute`. */ export declare function execute(args: ExecutionArgs): Observable>; export declare function execute(schema: GraphQLSchema, document: DocumentNode, rootValue?: unknown, contextValue?: unknown, variableValues?: Maybe<{ [key: string]: unknown; }>, operationName?: Maybe, fieldResolver?: Maybe>): Observable>;