all repos — caroster @ v8.2

[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 passengerExtensions from "./passenger";
 6import notificationExtensions from "./notification";
 7import tripAlert from "./trip-alert";
 8
 9export default ({ strapi }) => {
10  const extService = strapi.plugin("graphql").service("extension");
11  authExtensions.forEach(extService.use);
12  eventExtensions.forEach(extService.use);
13  userExtensions.forEach(extService.use);
14  travelExtensions.forEach(extService.use);
15  passengerExtensions.forEach(extService.use);
16  notificationExtensions.forEach(extService.use);
17  tripAlert.forEach(extService.use);
18
19  // Disable shadow CRUD
20  extService.shadowCRUD("api::event.event").field("users").disableOutput();
21};