MCPcopy
hub / github.com/parse-community/parse-server / buildNestedOrQuery

Function buildNestedOrQuery

spec/RequestComplexity.spec.js:40–46  ·  view source on GitHub ↗
(depth)

Source from the content-addressed store, hash-verified

38 }
39
40 function buildNestedOrQuery(depth) {
41 let where = { username: 'test' };
42 for (let i = 0; i < depth; i++) {
43 where = { $or: [where, { username: 'test' }] };
44 }
45 return where;
46 }
47
48 function buildNestedAndQuery(depth) {
49 let where = { username: 'test' };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected