all repos — caroster @ a7f00a96575b17ed51637a09a10f0361ce410007

[Octree] Group carpool to your event https://caroster.io

backend/src/graphql/index.ts (view raw)

 1import authExtensions from "./auth";
 2import eventExtensions from "./event";
 3import userExtensions from "./user";
 4import travelExtensions from "./travel";
 5import vehicleExtensions from "./vehicle";
 6import passengerExtensions from "./passenger";
 7import notificationExtensions from "./notification";
 8import tripAlert from "./trip-alert";
 9
10export default ({ strapi }) => {
11  const extService = strapi.plugin("graphql").service("extension");
12  authExtensions.forEach(extService.use);
13  eventExtensions.forEach(extService.use);
14  userExtensions.forEach(extService.use);
15  travelExtensions.forEach(extService.use);
16  vehicleExtensions.forEach(extService.use);
17  passengerExtensions.forEach(extService.use);
18  notificationExtensions.forEach(extService.use);
19  tripAlert.forEach(extService.use);
20
21  // Disable shadow CRUD
22  extService.shadowCRUD("api::event.event").field("users").disableOutput();
23};