-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.gql
More file actions
50 lines (43 loc) · 974 Bytes
/
schema.gql
File metadata and controls
50 lines (43 loc) · 974 Bytes
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 ImageSignature {
signature: String!
timestamp: Int!
}
type Memory {
hearts: Int!
id: ID!
image: String!
latitude: Float!
longitude: Float!
message: String!
nearby: [Memory!]!
publicId: String!
userId: String!
}
input MemoryInput {
coordinates: CoordinatesInput!
hearts: Int!
image: String!
message: String!
}
type Mutation {
createImageSignature: ImageSignature!
createMemory(input: MemoryInput!): Memory
deleteMemory(id: String!): Boolean!
updateMemory(id: String!, input: MemoryInput!): Memory
}
type Query {
memories(bounds: BoundsInput!): [Memory!]!
memory(id: String!): Memory
}