2022-08-09 16:23:33 -06:00
|
|
|
extend type Query {
|
2023-04-02 16:45:17 -06:00
|
|
|
posts(name: String!, tag: String! = "", paging: PageInput): Connection!
|
2022-08-09 16:23:33 -06:00
|
|
|
}
|
|
|
|
extend type Subscription {
|
2022-08-10 10:09:58 -06:00
|
|
|
"""after == 0 start from begining, after == -1 start from end"""
|
2023-04-02 16:45:17 -06:00
|
|
|
postAdded(name: String!, tag: String! = "", after: Int! = -1): PostEvent
|
2022-08-09 16:23:33 -06:00
|
|
|
}
|
2023-02-26 22:33:01 -07:00
|
|
|
type PostEvent implements Edge @goModel(model: "go.sour.is/ev/app/msgbus.PostEvent") {
|
2022-08-09 16:23:33 -06:00
|
|
|
id: ID!
|
|
|
|
|
|
|
|
payload: String!
|
|
|
|
payloadJSON: Map!
|
|
|
|
tags: [String!]!
|
|
|
|
|
|
|
|
meta: Meta!
|
|
|
|
}
|