refactor: schema modularization
This commit is contained in:
parent
d9e3a9e61f
commit
82b5db6908
35 changed files with 2423 additions and 685 deletions
9
lib/new-admin/graphql/resolvers/pairing.resolver.js
Normal file
9
lib/new-admin/graphql/resolvers/pairing.resolver.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const pairing = require('../../modules/pairing')
|
||||
|
||||
const resolvers = {
|
||||
Mutation: {
|
||||
createPairingTotem: (...[, { name }]) => pairing.totem(name)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = resolvers
|
||||
Loading…
Add table
Add a link
Reference in a new issue