ev/app/gql/common.graphqls

37 lines
789 B
GraphQL
Raw Normal View History

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