MCPcopy
hub / github.com/graphql/graphiql / resolve

Function resolve

packages/graphiql/test/schema.js:195–201  ·  view source on GitHub ↗
(_value, _args)

Source from the content-addressed store, hash-verified

193 friends: {
194 type: new GraphQLList(Person),
195 async *resolve(_value, _args) {
196 const names = ['James', 'Mary', 'John', 'Patrica']; // Top 4 names https://ssa.gov/oact/babynames/decades/century.html
197 for (const name of names) {
198 await sleep(100);
199 yield { name };
200 }
201 },
202 },
203 }),
204});

Callers 2

nextFunction · 0.50
GraphQLCacheClass · 0.50

Calls 1

sleepFunction · 0.70

Tested by

no test coverage detected