ev/api/gql_ev/common.graphqls

43 lines
706 B
GraphQL
Raw Normal View History

scalar Time
scalar Map
2022-08-07 11:55:49 -06:00
type Connection {
paging: PageInfo!
edges: [Edge!]!
}
input PageInput {
idx: Int = 0
count: Int = 30
}
type PageInfo {
next: Boolean!
prev: Boolean!
begin: Int!
end: Int!
}
interface Edge {
id: ID!
}
type Meta {
eventID: String! @goField(name: "getEventID")
2022-08-07 11:55:49 -06:00
streamID: String!
created: Time!
position: Int!
}
directive @goModel(
model: String
models: [String!]
) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
2022-08-07 11:55:49 -06:00
directive @goField(
forceResolver: Boolean
name: String
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
directive @goTag(
key: String!
value: String
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION