Last active
March 25, 2020 14:08
-
-
Save kluu1/97237370abdd0ce2ab2c01af4c44d52d 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
| module.exports.resolvers = { | |
| Query: { | |
| getOrders: (_, args) => { | |
| const orders = [ | |
| { | |
| id: '1977', | |
| amount: 10.0, | |
| tax: 0.5, | |
| total: 10.5, | |
| }, | |
| { | |
| id: '1978', | |
| amount: 20.0, | |
| tax: 1.0, | |
| total: 21.0, | |
| }, | |
| { | |
| id: '1979', | |
| amount: 30.0, | |
| tax: 1.5, | |
| total: 31.5, | |
| }, | |
| ]; | |
| return orders; | |
| }, | |
| }, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment