App/Bots/Records.

This commit is contained in:
richburdon
2020-05-25 18:32:45 -04:00
parent 9fbdd0625a
commit 75459af67b
60 changed files with 961 additions and 221 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
//
// Copyright 2020 DxOS
// Copyright 2020 DxOS.org
//
module.exports = {
+8 -6
View File
@@ -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 -1
View File
@@ -1,5 +1,5 @@
//
// Copyright 2020 DxOS
// Copyright 2020 DxOS.org
//
import debug from 'debug';
+6 -5
View File
@@ -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: {
//