MCPcopy Create free account
hub / github.com/apollographql/fullstack-tutorial / dataSources

Function dataSources

final/server/src/index.js:18–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17// set up any dataSources our resolvers need
18const dataSources = () => ({
19 launchAPI: new LaunchAPI(),
20 userAPI: new UserAPI({ store }),
21});
22
23// the function that sets up the global context for each resolver, using the req
24const context = async ({ req }) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected