我想通过使用cypher查询将参数传递给它来创建新节点及其属性:
@app.route('/enter',methods=['post'])
def enter_products():
results = graph.cypher.execute("CREATE (a:Products{"name","age"})")
答案 0 :(得分:1)
您只需将地图作为参数传入,参数地图中的每个条目都可用作查询中的06-27 14:44:55.157 15191-15235/com.joelbrun.jetskirider.android E/AndroidRuntime﹕ FATAL EXCEPTION: GLThread 78201
Process: com.joelbrun.jetskirider.android, PID: 15191
java.lang.IllegalArgumentException: Missing LabelStyle font.
at com.badlogic.gdx.scenes.scene2d.ui.Label.setStyle(Label.java:77)
at com.badlogic.gdx.scenes.scene2d.ui.Label.<init>(Label.java:71)
at com.badlogic.gdx.scenes.scene2d.ui.TextButton.<init>(TextButton.java:46)
at com.badlogic.gdx.scenes.scene2d.ui.CheckBox.<init>(CheckBox.java:41)
at com.joelbrun.jetskirider.screens.MainMenu.show(MainMenu.java:51)
at com.badlogic.gdx.Game.setScreen(Game.java:61)
at com.joelbrun.jetskirider.screens.Splash$1.onEvent(Splash.java:38)
at aurelienribon.tweenengine.BaseTween.callCallback(BaseTween.java:380)
at aurelienribon.tweenengine.BaseTween.updateStep(BaseTween.java:521)
at aurelienribon.tweenengine.BaseTween.update(BaseTween.java:424)
at aurelienribon.tweenengine.TweenManager.update(TweenManager.java:166)
at com.joelbrun.jetskirider.screens.Splash.render(Splash.java:48)
at com.badlogic.gdx.Game.render(Game.java:46)
at com.joelbrun.jetskirider.JetskiRider.render(JetskiRider.java:35)
at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:422)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1522)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
参数:
{key}