refactor: move graphql into individual services

This commit is contained in:
Jon Lundy committed 2022-08-19 12:29:57 -06:00
1 parent d06e0bac3e
commit 814c974e93
20 files changed
+633 -503

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
extend type Query {
posts(streamID: String! paging: PageInput): Connection!
}
extend type Subscription {
"""after == 0 start from begining, after == -1 start from end"""
postAdded(streamID: String! after: Int! = -1): PostEvent
}
type PostEvent implements Edge @goModel(model: "github.com/sour-is/ev/app/msgbus.PostEvent") {
id: ID!
payload: String!
payloadJSON: Map!
tags: [String!]!
meta: Meta!
}