ev/pkg/gql/common.graphqls

36 lines
813 B
GraphQL
Raw Permalink Normal View History

scalar Time
scalar Map
2022-08-07 11:55:49 -06:00
type Connection @goModel(model: "github.com/sour-is/ev/pkg/gql.Connection") {
2022-08-07 11:55:49 -06:00
paging: PageInfo!
edges: [Edge!]!
}
input PageInput @goModel(model: "github.com/sour-is/ev/pkg/gql.PageInput") {
2022-08-07 11:55:49 -06:00
idx: Int = 0
count: Int = 30
}
type PageInfo @goModel(model: "github.com/sour-is/ev/pkg/gql.PageInfo") {
2022-08-07 11:55:49 -06:00
next: Boolean!
prev: Boolean!
begin: Int!
end: Int!
}
interface Edge @goModel(model: "github.com/sour-is/ev/pkg/gql.Edge"){
2022-08-07 11:55:49 -06:00
id: ID!
}
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