MCPcopy
hub / github.com/ardatan/graphql-tools / parseSelectionSet

Function parseSelectionSet

packages/utils/src/selectionSets.ts:4–10  ·  view source on GitHub ↗
(
  selectionSet: string,
  options?: GraphQLParseOptions,
)

Source from the content-addressed store, hash-verified

2import { GraphQLParseOptions } from './Interfaces.js';
3
4export function parseSelectionSet(
5 selectionSet: string,
6 options?: GraphQLParseOptions,
7): SelectionSetNode {
8 const query = parse(selectionSet, options).definitions[0] as OperationDefinitionNode;
9 return query.selectionSet;
10}

Callers

nothing calls this directly

Calls 1

parseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…