Initialisation
Added the packages and files for the backend server
This commit is contained in:
5
node_modules/@graphql-tools/utils/esm/selectionSets.js
generated
vendored
Normal file
5
node_modules/@graphql-tools/utils/esm/selectionSets.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { parse } from 'graphql';
|
||||
export function parseSelectionSet(selectionSet, options) {
|
||||
const query = parse(selectionSet, options).definitions[0];
|
||||
return query.selectionSet;
|
||||
}
|
||||
Reference in New Issue
Block a user