Created
May 15, 2020 04:12
-
-
Save danielrearden/92025c0b3dc0545255b0ac34d9268634 to your computer and use it in GitHub Desktop.
Making GraphQL Magic with Sqlmancer - 9
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
const resolvers = { | |
Query: { | |
customers: (root, args, ctx, info) => { | |
return Customer.findMany() | |
.resolveInfo(info) | |
.execute(); | |
}, | |
invoices: (root, args, ctx, info) => { | |
return Invoice.findMany() | |
.resolveInfo(info) | |
.execute(); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment