Skip to content

Instantly share code, notes, and snippets.

@justdomepaul
Last active March 19, 2023 16:39
Show Gist options
  • Save justdomepaul/c2876655568eed9c478399e73fa60591 to your computer and use it in GitHub Desktop.
Save justdomepaul/c2876655568eed9c478399e73fa60591 to your computer and use it in GitHub Desktop.
initial schema graphql
scalar Int32
scalar Int64
scalar Uint
scalar Uint32
scalar Uint64
scalar Time
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
type OKResponse {
message: String
}
type UnauthorizedError {
message: String
}
type UnhandledError {
message: String
}
type ValidationError {
message: String
}
"""
Information about pagination in a connection
"""
type PageInfo {
"""
When paginating forwards, are there more items?
"""
hasNextPage: Boolean!
"""
When paginating backwards, are there more items?
"""
hasPreviousPage: Boolean!
"""
When paginating backwards, the cursor to continue
"""
startCursor: String
"""
When paginating forwards, the cursor to continue
"""
endCursor: String
}
type Query {
ping: String!
}
type Mutation {
ping: String!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment