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