all repos — caroster @ v0.5.1

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

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

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