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

Method cancelTrip

start/server/src/datasources/user.js:58–61  ·  view source on GitHub ↗
({ launchId })

Source from the content-addressed store, hash-verified

56 }
57
58 async cancelTrip({ launchId }) {
59 const userId = this.context.user.id;
60 return !!this.store.trips.destroy({ where: { userId, launchId } });
61 }
62
63 async getLaunchIdsByUser() {
64 const userId = this.context.user.id;

Callers 2

user.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected