forked from cerc-io/laconic-console
App/Bots/Records.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// Copyright 2020 DxOS
|
||||
// Copyright 2020 DxOS.org
|
||||
//
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright 2020 DxOS
|
||||
# Copyright 2020 DxOS.org
|
||||
#
|
||||
|
||||
type JSONResult {
|
||||
@@ -25,14 +25,16 @@ type Result {
|
||||
#
|
||||
|
||||
type Query {
|
||||
system_status: Status
|
||||
ipfs_status: JSONResult
|
||||
wns_status: JSONResult
|
||||
wns_log: Log
|
||||
system_status: Status!
|
||||
ipfs_status: JSONResult!
|
||||
wns_status: JSONResult!
|
||||
# TODO(burdon): Import WNS schema!
|
||||
wns_records(type: String): JSONResult!
|
||||
wns_log: Log!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
wns_action(command: String!): Result
|
||||
wns_action(command: String!): Result!
|
||||
}
|
||||
|
||||
schema {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// Copyright 2020 DxOS
|
||||
// Copyright 2020 DxOS.org
|
||||
//
|
||||
|
||||
import debug from 'debug';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// Copyright 2020 DxOS
|
||||
// Copyright 2020 DxOS.org
|
||||
//
|
||||
|
||||
import debug from 'debug';
|
||||
@@ -9,12 +9,13 @@ import { version } from '../package.json';
|
||||
|
||||
const log = debug('dxos:console:server:resolvers');
|
||||
|
||||
//
|
||||
// Resolvers
|
||||
//
|
||||
|
||||
const timestamp = () => new Date().toUTCString();
|
||||
|
||||
/**
|
||||
* Resolvers
|
||||
* https://www.apollographql.com/docs/graphql-tools/resolvers
|
||||
* @param config
|
||||
*/
|
||||
export const createResolvers = config => ({
|
||||
Mutation: {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user