2022-08-09 16:23:33 -06:00
|
|
|
extend type Query {
|
|
|
|
posts(streamID: String! paging: PageInput): Connection!
|
|
|
|
}
|
|
|
|
extend type Subscription {
|
2022-08-10 10:09:58 -06:00
|
|
|
"""after == 0 start from begining, after == -1 start from end"""
|
|
|
|
postAdded(streamID: String! after: Int! = -1): PostEvent
|
2022-08-09 16:23:33 -06:00
|
|
|
}
|
|
|
|
type PostEvent implements Edge {
|
|
|
|
id: ID!
|
|
|
|
|
|
|
|
payload: String!
|
|
|
|
payloadJSON: Map!
|
|
|
|
tags: [String!]!
|
|
|
|
|
|
|
|
meta: Meta!
|
|
|
|
}
|