MCPcopy Create free account
hub / github.com/subquery/subql / isFieldNode

Function isFieldNode

packages/query/src/graphql/plugins/GetMetadataPlugin.ts:166–168  ·  view source on GitHub ↗
(node: SelectionNode)

Source from the content-addressed store, hash-verified

164}
165
166function isFieldNode(node: SelectionNode): node is FieldNode {
167 return node.kind === 'Field';
168}
169
170/* Recursively work down the AST to find a node with a matching path */
171function findNodePath(nodes: readonly SelectionNode[], path: string[]): FieldNode | undefined {

Callers 1

findNodePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected