FunctionsgetOperationASTgetOperationAST CallablegetOperationAST(documentAST: DocumentNode, operationName?: Maybe<string>): Maybe<OperationDefinitionNode>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.ParametersdocumentAST: DocumentNodeoptionaloperationName: Maybe<string>Returns Maybe<OperationDefinitionNode>
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.