MCPcopy
hub / github.com/ardatan/graphql-tools / complete

Function complete

packages/executor/src/execution/__tests__/lists-test.ts:14–20  ·  view source on GitHub ↗
(rootValue: unknown)

Source from the content-addressed store, hash-verified

12
13describe('Execute: Accepts any iterable as list value', () => {
14 function complete(rootValue: unknown) {
15 return executeSync({
16 schema: buildSchema('type Query { listField: [String] }'),
17 document: parse('{ listField }'),
18 rootValue,
19 });
20 }
21
22 it('Accepts a Set as a List value', () => {
23 const listField = new Set(['apple', 'banana', 'apple', 'coconut']);

Callers 1

lists-test.tsFile · 0.70

Calls 6

executeSyncFunction · 0.85
executeFunction · 0.85
expectJSONFunction · 0.85
promisifyFunction · 0.85
executeQueryFunction · 0.70
parseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…