Files
Home_Buying_App/node_modules/@graphql-tools/utils/esm/selectionSets.js
jackbeeby b412dfe2ca Initialisation
Added the packages and files for the backend server
2024-12-15 17:48:45 +11:00

6 lines
188 B
JavaScript

import { parse } from 'graphql';
export function parseSelectionSet(selectionSet, options) {
const query = parse(selectionSet, options).definitions[0];
return query.selectionSet;
}