我正在尝试使用graphql查询stardog服务器,这是我的代码。
import {
GraphQLSchema,
GraphQLObjectType,
GraphQLInt,
GraphQLString,
GraphQLList,
GraphQLNonNull,
GraphQLID,
GraphQLFloat
} from 'graphql';
import axios from 'axios';
var stardog = require("stardog");
let Noun = new GraphQLObjectType({
name: "Noun",
description: "Basic information on a GitHub user",
fields: () => ({
"c": {
type: GraphQLString,
resolve: (obj) => {
console.log(obj);
}
}
})
});
const query = new GraphQLObjectType({
name: "Query",
description: "First GraphQL for Sparql Endpoint Adaptive!",
fields: () => ({
noun: {
type: Noun,
description: "Noun data from fibosearch", …Run Code Online (Sandbox Code Playgroud) 我是亚马逊网络服务的新手.我创建了一个ec2实例,并希望在其上安装Java.我已下载rpm文件但无法执行它.下面是root下的文件夹/文件列表.
root@ip-172-31-6-12:~# ls
install.sh jdk1.8_1.8.0171-1_amd64.deb node_modules node-v8.11.3.tar.gz
jdk-10.0.1 jdk-8u171-linux-x64.rpm node-v8.11.3 survey
Run Code Online (Sandbox Code Playgroud)
当我跑步的时候
dpkg -i jdk1.8_1.8.0171-1_amd64.deb
Run Code Online (Sandbox Code Playgroud)
我收到了这条消息.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
Run Code Online (Sandbox Code Playgroud)
请让我知道,我在这里缺少什么.