16 lines
431 B
GraphQL
16 lines
431 B
GraphQL
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!
|
|
} |