-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.gql
54 lines (47 loc) · 1.01 KB
/
schema.gql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
input BoundInput {
ne: Coordinates!
sw: Coordinates!
}
input Coordinates {
latitude: Float!
longitude: Float!
}
type ImageSignature {
signature: String!
timestamp: Int!
}
type Mutation {
createImageSignature: ImageSignature!
createPlace(input: PlaceInput!): Place
deletePlace(id: String!): Boolean!
updatePlace(id: String!, input: PlaceInput!): Place
}
type Place {
address: String!
description: String!
id: ID!
image: String!
latitude: Float!
longitude: Float!
nearby: [Place!]!
placeName: String!
placeType: String!
publicId: String!
userId: String!
}
input PlaceInput {
address: String!
coordinates: Coordinates!
description: String!
image: String!
placeName: String!
placeType: String!
}
type Query {
place(id: String!): Place
places(bounds: BoundInput!): [Place!]
}