37 lines
833 B
GraphQL
37 lines
833 B
GraphQL
scalar Time
|
|
scalar Map
|
|
|
|
type Connection @goModel(model: "github.com/sour-is/ev/pkg/gql.Connection") {
|
|
paging: PageInfo!
|
|
edges: [Edge!]!
|
|
}
|
|
input PageInput @goModel(model: "github.com/sour-is/ev/pkg/gql.PageInput") {
|
|
after: Int = 0
|
|
before: Int
|
|
count: Int = 30
|
|
}
|
|
type PageInfo @goModel(model: "github.com/sour-is/ev/pkg/gql.PageInfo") {
|
|
next: Boolean!
|
|
prev: Boolean!
|
|
|
|
begin: Int!
|
|
end: Int!
|
|
}
|
|
interface Edge @goModel(model: "github.com/sour-is/ev/pkg/gql.Edge"){
|
|
id: ID!
|
|
}
|
|
|
|
directive @goModel(
|
|
model: String
|
|
models: [String!]
|
|
) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
|
|
|
|
directive @goField(
|
|
forceResolver: Boolean
|
|
name: String
|
|
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
|
|
|
|
directive @goTag(
|
|
key: String!
|
|
value: String
|
|
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION |