Skip to content

Instantly share code, notes, and snippets.

@doug2k1
Created April 5, 2018 23:26
Show Gist options
  • Save doug2k1/5790dc14a7d999d39b5684780c6f000f to your computer and use it in GitHub Desktop.
Save doug2k1/5790dc14a7d999d39b5684780c6f000f to your computer and use it in GitHub Desktop.
scalar Date
type Query {
brokers(limit: Int): [Broker]
broker(id: ID!): Broker
investments(limit: Int): [Investment]
investment(id: ID!): Investment
}
type Broker {
id: ID!
name: String!
investments: [Investment]
}
type Investment {
id: ID!
name: String!
broker: Broker
balanceUpdates(limit: Int, order: [[String]]): [BalanceUpdate]
transactions: [Transaction]
}
type BalanceUpdate {
id: ID!
amount: Float!
date: Date!
}
type Transaction {
id: ID!
amount: Float!
date: Date!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment