Created
March 31, 2018 13:19
-
-
Save doug2k1/6d0e3ff891ae3b2e878c3a36374ffcac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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