@accounter/server
Version:
Accounter GraphQL server
100 lines (85 loc) • 1.75 kB
text/typescript
import { gql } from 'graphql-modules';
export default gql`
" query root "
type Query {
ping: Boolean
}
" mutation root "
type Mutation {
pong: Boolean
}
# Directives
" Defer directive "
directive on FRAGMENT_SPREAD | INLINE_FRAGMENT
" Stream directive "
directive on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
# Scalars
" Date "
scalar DateTime
" Date with no time of day "
scalar TimelessDate
" Rate "
scalar Rate
" URL "
scalar URL
" File "
scalar FileScalar
" UUID "
scalar UUID
" BigInt "
scalar BigInt
" Country Code "
scalar CountryCode
# Common Types
" a date range "
type DateRange {
start: TimelessDate!
end: TimelessDate!
}
" Represent financial amount "
type FinancialAmount {
" the raw amount, for example: 19.99 "
raw: Float!
" formatted value with the currency symbol, like: 10$ "
formatted: String!
" currency of the amount "
currency: Currency!
}
" input variables for updateCharge.FinancialAmount"
input FinancialAmountInput {
raw: Float!
currency: Currency!
}
" Represent financial rounded amount with Int values "
type FinancialIntAmount {
" the raw amount, for example: 19 "
raw: Int!
" formatted value with the currency symbol, like: 10$ "
formatted: String!
" currency of the amount "
currency: Currency!
}
" All possible currencies "
enum Currency {
" FIAT currencies "
AUD
CAD
EUR
GBP
ILS
JPY
SEK
USD
" Crypto currencies "
ETH
GRT
USDC
}
" meta info for page pagination "
type PageInfo {
totalPages: Int!
totalRecords: Int!
currentPage: Int
pageSize: Int
}
`;