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

Method constructor

start/server/src/datasources/user.js:5–8  ·  view source on GitHub ↗
({ store })

Source from the content-addressed store, hash-verified

3
4class UserAPI extends DataSource {
5 constructor({ store }) {
6 super();
7 this.store = store;
8 }
9
10 /**
11 * This is a function that gets called by ApolloServer when being setup.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected