Skip to content

Commit 2cbffe7

Browse files
committed
update app schema
1 parent 6c695ae commit 2cbffe7

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

server/src/schema.graphql

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
1-
# import Link, Vote from "./generated/prisma.graphql"
1+
# import Link, Vote, LinkSubscriptionPayload, VoteSubscriptionPayload from "./generated/prisma.graphql"
22

33
type Query {
44
feed(filter: String, skip: Int, first: Int, orderBy: LinkOrderByInput): Feed!
55
}
66

7-
type Feed {
8-
links: [Link!]!
9-
count: Int!
10-
}
11-
127
type Mutation {
138
post(url: String!, description: String!): Link!
149
signup(email: String!, password: String!, name: String!): AuthPayload
1510
login(email: String!, password: String!): AuthPayload
1611
vote(linkId: ID!): Vote
1712
}
1813

14+
type Subscription {
15+
newLink: LinkSubscriptionPayload
16+
newVote: VoteSubscriptionPayload
17+
}
18+
19+
type Feed {
20+
links: [Link!]!
21+
count: Int!
22+
}
23+
24+
1925
type AuthPayload {
2026
token: String
2127
user: User
@@ -26,8 +32,3 @@ type User {
2632
name: String!
2733
email: String!
2834
}
29-
30-
type Subscription {
31-
newLink: LinkSubscriptionPayload
32-
newVote: VoteSubscriptionPayload
33-
}

0 commit comments

Comments
 (0)