Version check and sorting.

This commit is contained in:
richburdon
2020-05-25 22:16:25 -04:00
parent 75459af67b
commit c9b139bb9b
21 changed files with 192 additions and 56 deletions
+12 -14
View File
@@ -2,30 +2,28 @@
# Copyright 2020 DxOS.org
#
type JSONResult {
json: String!
}
type Log {
log: [String]!
}
type Status {
timestamp: String!
version: String!
}
type Result {
timestamp: String!
code: Int!
}
type Log {
timestamp: String!
log: [String]!
}
# TODO(burdon): Generic result.
type JSONResult {
timestamp: String!
json: String!
}
#
# Schema
#
type Query {
system_status: Status!
system_status: JSONResult!
ipfs_status: JSONResult!
wns_status: JSONResult!
# TODO(burdon): Import WNS schema!
+5 -3
View File
@@ -5,8 +5,6 @@
import debug from 'debug';
import IpfsHttpClient from 'ipfs-http-client';
import { version } from '../package.json';
const log = debug('dxos:console:server:resolvers');
const timestamp = () => new Date().toUTCString();
@@ -39,7 +37,11 @@ export const createResolvers = config => ({
system_status: () => ({
timestamp: timestamp(),
version
json: JSON.stringify({
dxos: {
image: '0.0.1'
}
})
}),
//