-
Notifications
You must be signed in to change notification settings - Fork 46
/
schema.gql
50 lines (43 loc) · 963 Bytes
/
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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
input BoundsInput {
ne: CoordinatesInput!
sw: CoordinatesInput!
}
input CoordinatesInput {
latitude: Float!
longitude: Float!
}
type House {
address: String!
bedrooms: Int!
id: ID!
image: String!
latitude: Float!
longitude: Float!
nearby: [House!]!
publicId: String!
userId: String!
}
input HouseInput {
address: String!
bedrooms: Int!
coordinates: CoordinatesInput!
image: String!
}
type ImageSignature {
signature: String!
timestamp: Int!
}
type Mutation {
createHouse(input: HouseInput!): House
createImageSignature: ImageSignature!
deleteHouse(id: String!): Boolean!
updateHouse(id: String!, input: HouseInput!): House
}
type Query {
house(id: String!): House
houses(bounds: BoundsInput!): [House!]!
}