Skip to content

Commit 62aaeec

Browse files
authored
Update schema.graphql
1 parent 3607b9a commit 62aaeec

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

schema.graphql

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
type User {
22
name: String!
33
links: [Link!]! @relation(name: "UsersLinks")
4-
comments: [Comment!]! @relation(name: "UsersComments")
54
votes: [Vote!]! @relation(name: "UsersVotes")
65
}
76

87
type Link {
98
url: String!
109
postedBy: User! @relation(name: "UsersLinks")
11-
comments: [Comment!]! @relation(name: "CommentsOnLink")
1210
votes: [Vote!]! @relation(name: "VotesOnLink")
1311
}
1412

15-
type Comment {
16-
text: String!
17-
author: User! @relation(name: "UsersComments")
18-
link: Link! @relation(name: "CommentsOnLink")
19-
}
20-
2113
type Vote {
2214
user: User! @relation(name: "UsersVotes")
2315
link: Link! @relation(name: "VotesOnLink")
24-
}
16+
}

0 commit comments

Comments
 (0)