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

Method cancelTrip

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

Source from the content-addressed store, hash-verified

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

Callers 3

resolvers.jsFile · 0.45
user.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected