joan
02/18/2019, 3:56 PMtype Query {
events: [Event!]!
event(slug: String!): Event
places: [Place!]!
}
type Mutation {
createEvent(title: String!, slug: String!): Event
deleteEvent(id: ID!): Event
updateEvent(id: ID!, title: String!, slug: String!, description: String, dates: [String], menus: [String]): Event
createPlace(name: String!, url: String, event: ID!): Place
deletePlace(id: ID!): Place
}
type Event {
id: ID!
slug: String!
title: String!
description: String
dates: [String]
places: [Place]
menus: [String]
}
type Place {
id: ID!
name: String!
url: String
event: Event!
}
lawjolla
02/18/2019, 4:51 PMHarshit
02/18/2019, 5:08 PMHarshit
02/18/2019, 5:08 PMlawjolla
02/18/2019, 5:08 PM