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/status.resolver.js
Normal file
9
lib/new-admin/graphql/resolvers/status.resolver.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const supervisor = require('../../modules/supervisor')
|
||||
|
||||
const resolvers = {
|
||||
Query: {
|
||||
uptime: () => supervisor.getAllProcessInfo()
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = resolvers
|
||||
Loading…
Add table
Add a link
Reference in a new issue