feat: add subscriptions and rework interfaces
This commit is contained in:
15
api/gql_ev/msgbus.graphqls
Normal file
15
api/gql_ev/msgbus.graphqls
Normal file
@@ -0,0 +1,15 @@
|
||||
extend type Query {
|
||||
posts(streamID: String! paging: PageInput): Connection!
|
||||
}
|
||||
extend type Subscription {
|
||||
postAdded(streamID: String!): PostEvent
|
||||
}
|
||||
type PostEvent implements Edge {
|
||||
id: ID!
|
||||
|
||||
payload: String!
|
||||
payloadJSON: Map!
|
||||
tags: [String!]!
|
||||
|
||||
meta: Meta!
|
||||
}
|
||||
Reference in New Issue
Block a user