-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.graphcool
42 lines (38 loc) · 920 Bytes
/
project.graphcool
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
# project: cj64fh9zlj2gf0160e400em7x
# version: 3
type User implements Node {
name: String!
links: [Link!]! @relation(name: "UsersLinks")
votes: [Vote!]! @relation(name: "UsersVotes")
createdAt: DateTime!
email: String @isUnique
id: ID! @isUnique
password: String
updatedAt: DateTime!
}
type Link implements Node {
url: String!
description: String!
postedBy: User @relation(name: "UsersLinks")
votes: [Vote!]! @relation(name: "VotesOnLink")
createdAt: DateTime!
id: ID! @isUnique
updatedAt: DateTime!
}
type Vote implements Node {
user: User @relation(name: "UsersVotes")
link: Link @relation(name: "VotesOnLink")
createdAt: DateTime!
id: ID! @isUnique
updatedAt: DateTime!
}
type File implements Node {
contentType: String!
createdAt: DateTime!
id: ID! @isUnique
name: String!
secret: String! @isUnique
size: Int!
updatedAt: DateTime!
url: String! @isUnique
}