UNPKG

@accounter/server

Version:

The test suite is split into three Vitest projects for efficiency and isolation:

109 lines (92 loc) 1.9 kB
import { gql } from 'graphql-modules'; export default gql` " query root " type Query { ping: Boolean } " mutation root " type Mutation { pong: Boolean } # Directives " Defer directive " directive @defer on FRAGMENT_SPREAD | INLINE_FRAGMENT " Stream directive " directive @stream on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT " Role based authorization" enum Role { ADMIN ACCOUNTANT } " Authorization directive" directive @auth(role: Role!) on FIELD_DEFINITION # 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 } `;