MCPcopy Index your code
hub / github.com/parse-community/parse-server / buildDeepQuery

Function buildDeepQuery

spec/GraphQLQueryComplexity.spec.js:47–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46 // Returns a query with depth 4: users(1) > edges(2) > node(3) > objectId(4)
47 function buildDeepQuery() {
48 return '{ users { edges { node { objectId } } } }';
49 }
50
51 function buildWideQuery(fieldCount) {
52 const fields = Array.from({ length: fieldCount }, (_, i) => `field${i}: objectId`).join('\n ');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected