all repos — caroster @ 25b044cdc2c4f79f286f1ff7fcf2ac916192f7da

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

backend/api/event/config/schema.graphql.js (view raw)

 1module.exports = {
 2  definition: `
 3    input updateEventByUUIDInput {
 4      where: InputUUID
 5      data: editEventInput
 6    }
 7
 8    input InputUUID {
 9      uuid: String!
10    }
11  `,
12  query: `
13        eventByUUID(uuid: String!): Event
14    `,
15  mutation: `
16        updateEventByUUID(input: updateEventByUUIDInput): updateEventPayload
17  `,
18  type: {},
19  resolver: {
20    Query: {
21      eventByUUID: {
22        description: 'Retrieve an event using its UUID',
23        resolver: 'application::event.event.findOne',
24      },
25    },
26    Mutation: {
27      updateEventByUUID: {
28        description: 'Update an event using its UUID',
29        resolver: 'application::event.event.update',
30      },
31    },
32  },
33};