Created
March 29, 2018 13:18
-
-
Save tibotiber/de91c1a226a2b35109e0ddba55180cf8 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
const { makeSelection, formatPrimitiveFields } = require('./interfaces') | |
const Query = { | |
characters (parent, args, ctx, info) { | |
return ctx.db.query | |
.dbCharacters( | |
args, | |
makeSelection(info) | |
) | |
.then(formatPrimitiveFields) | |
} | |
} | |
module.exports = { Query } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment