go-pkg/gql/common.graphqls

37 lines
789 B
GraphQL
Raw Normal View History

2023-07-12 12:43:25 -06:00
scalar Time
scalar Map
2023-07-26 16:51:35 -06:00
type Connection @goModel(model: "go.sour.is/pkg/gql.Connection") {
2023-07-12 12:43:25 -06:00
paging: PageInfo!
edges: [Edge!]!
}
2023-07-26 16:51:35 -06:00
input PageInput @goModel(model: "go.sour.is/pkg/gql.PageInput") {
2023-07-12 12:43:25 -06:00
after: Int = 0
before: Int
count: Int = 30
}
2023-07-26 16:51:35 -06:00
type PageInfo @goModel(model: "go.sour.is/pkg/gql.PageInfo") {
2023-07-12 12:43:25 -06:00
next: Boolean!
prev: Boolean!
begin: Int!
end: Int!
}
2023-07-26 16:51:35 -06:00
interface Edge @goModel(model: "go.sour.is/pkg/gql.Edge"){
2023-07-12 12:43:25 -06:00
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