1 | import Maybe from '../tsutils/Maybe';
|
2 | import { DocumentNode, OperationDefinitionNode } from '../language/ast';
|
3 |
|
4 | /**
|
5 | * Returns an operation AST given a document AST and optionally an operation
|
6 | * name. If a name is not provided, an operation is only returned if only one is
|
7 | * provided in the document.
|
8 | */
|
9 | export function getOperationAST(
|
10 | documentAST: DocumentNode,
|
11 | operationName: Maybe<string>,
|
12 | ): Maybe<OperationDefinitionNode>;
|