我想从服务器获取架构.我可以获得所有类型的实体,但我无法获得属性.
获得所有类型:
query {
__schema {
queryType {
fields {
name
type {
kind
ofType {
kind
name
}
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
如何获取类型的属性:
__type(name: "Person") {
kind
name
fields {
name
type {
kind
name
description
}
}
}
Run Code Online (Sandbox Code Playgroud)
如何只在1个请求中获取具有属性的所有类型?或者更好:我如何通过mutators,enums,types获得整个架构......
我知道如何通过id删除顶点,但我需要删除多个顶点(清理数据库).
删除1 v是这样的:
ver = g.v(1)
g.removeVertex(ver)
Run Code Online (Sandbox Code Playgroud) 我正在使用neo4j并执行此查询:
MATCH (n:Person) RETURN n.name LIMIT 5
Run Code Online (Sandbox Code Playgroud)
我得到的名字,但我也需要ids.请帮忙!
基本路线是这样的:
app.get('/', function(req, res){
res.send('hello world');
});
Run Code Online (Sandbox Code Playgroud)
是否可以命名该路线并使其在任何模板中可用,因此可以像这样使用:
app.get('/', name="index", function(req, res){
res.send('hello world');
});
Go to site <a href="{% url index %}">index page</a>.
Run Code Online (Sandbox Code Playgroud)
灵感来自Django :)
nma-2:test nikolaialeksandrenko$ brew install ant
==> Downloading http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz
==> Best Mirror http://apache.igor.onlinedirect.bg/ant/binaries/apache-ant-1.9.0-bin.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz
Run Code Online (Sandbox Code Playgroud)
我正试图用我的mac安装蚂蚁...我在做错了什么?
我在网上搜索但没有找到具体的答案.请帮助 - 如何将Jasmine自动完成添加到WebStorm?
我用create_user_profile函数连接创建用户,当我创建i用户时出现问题,我似乎连接函数被调用两次而UserPRofile试图创建两次,女巫会发出错误
列user_id不是唯一的
Request Method: POST
Request URL: http://127.0.0.1:8000/register/
Django Version: 1.3
Exception Type: IntegrityError
Exception Value:
column user_id is not unique
Exception Location: c:\Python27\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 234
Python Executable: c:\Python27\python.exe
Python Version: 2.7.2
Run Code Online (Sandbox Code Playgroud)
这是调试日志:
[13/Apr/2012 10:20:57] "GET /register/ HTTP/1.1" 200 176691
DEBUG:django.db.backends:(0.002) SELECT "auth_user"."id", "auth_user"."username",
"auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_us
er"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_
superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user"
WHERE "auth_user"."last_name" = favicon ; args=(u'favicon',)
DEBUG:django.db.backends:(0.001) SELECT "auth_user"."id", "auth_user"."username",
"auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_us
er"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_
superuser", "auth_user"."last_login", "auth_user"."date_joined" …Run Code Online (Sandbox Code Playgroud) 我安装表达它在express.js指南中显示的方式. http://expressjs.com/guide.html
运行'node app'后,我收到此错误:
/Users/xxx/Documents/work/node/app.js:3
var app = express();
^
ReferenceError: express is not defined
at Object.<anonymous> (/Users/xxx/Documents/work/node/app.js:3:11)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
nma:node xxx$
Run Code Online (Sandbox Code Playgroud)