You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
458 B
12 lines
458 B
4 months ago
|
import type { Maybe } from '../jsutils/Maybe';
|
||
|
import type { DocumentNode, OperationDefinitionNode } from '../language/ast';
|
||
|
/**
|
||
|
* Returns an operation AST given a document AST and optionally an operation
|
||
|
* name. If a name is not provided, an operation is only returned if only one is
|
||
|
* provided in the document.
|
||
|
*/
|
||
|
export declare function getOperationAST(
|
||
|
documentAST: DocumentNode,
|
||
|
operationName?: Maybe<string>,
|
||
|
): Maybe<OperationDefinitionNode>;
|