refactor: schema modularization
This commit is contained in:
parent
d9e3a9e61f
commit
82b5db6908
35 changed files with 2423 additions and 685 deletions
10
lib/new-admin/graphql/resolvers/currency.resolver.js
Normal file
10
lib/new-admin/graphql/resolvers/currency.resolver.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
const { coins, currencies } = require('../../config')
|
||||
|
||||
const resolver = {
|
||||
Query: {
|
||||
currencies: () => currencies,
|
||||
cryptoCurrencies: () => coins
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = resolver
|
||||
Loading…
Add table
Add a link
Reference in a new issue