Created
April 5, 2018 23:26
-
-
Save doug2k1/5790dc14a7d999d39b5684780c6f000f to your computer and use it in GitHub Desktop.
This file contains 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