@accounter/server
Version:
Accounter GraphQL server
19 lines (16 loc) • 493 B
text/typescript
import { gql } from 'graphql-modules';
export default gql`
extend type Query {
businessesUsage(ids: [UUID!]!): [BusinessUsage!]!
}
" usage summary of a business across the system, used to spot unused businesses "
type BusinessUsage {
" same value as businessId; present so the type has a unique identifier "
id: UUID!
businessId: UUID!
totalTransactions: Int!
totalDocuments: Int!
totalMiscExpenses: Int!
totalLedgerRecords: Int!
}
`;