更新时间:2019-08-30 18:11
g.V()
g.V(id1, id2)
g.E()
g.V().has("attrName")
g.V().has("attrName", attrValue)
g.V().has("attrName", gt(1))
g.V().values("age").is(gt(70))
g.V().filter(values("age").is(gt(20)))
g.V().where(out().count().is(gt(4)))
g.V().out().dedup()
g.V().out().dedup().by("name")
g.V().out().limit(100)
g.V().out().range(10, 20)
g.V().repeat(out().simplePath()).times(3).valeus("name")
g.V().has("name", Text.match("*j*"))
g.V().values("name").filter(Text.match("*j*"))
g.V().has("name", Text.startsWith("To"))
g.V().values("name").filter(Text.startsWith("To"))
说明: 在字符串的包含计算如(startsWith/endsWith/contains)中,还支持not计算,例如:查找名字不是以To开头的点
g.V().has("name", P.not(Text.startsWith("To")))
g.V().has("a", Lists.contains(30))
g.V().values("a").filter(Lists.containsAny(Lists.of(10, 20, 30))
说明: 列表的包含计算如如(contains/containsAny/containsAll),同时还支持not计算,例如查找属性a的值中不包含30的点
g.V().has("a", P.not(Lists.contains(30)))
g.V().out().contant(1)
g.V().out().constant("aaa")
g.V().out().values("age").fold().count(local)
g.V().out().fold().dedup(local).by("name")
g.V().bothE().otherV()
g.V().id()
g.V().label()
g.V().out().fold().order().by("name")
g.V().properties("name").key()
g.V().properties("name").value()
g.V().out().fold().order(local).by("name").range(local, 2, 4)
g.V().as("a").out().out().select("a")
g.V().as("a").as("b").out("c").out().select("a", "b", "c")
g.V().out().in().path()
g.V().outE().inV().path().bay("name").by("weight").by("name")
g.V().out()
g.V().in('person_knows_person')
g.V().outE('person_knows_person').inV()
g.V().inE().bothV()
g.V().values()
g.V().values("name", "age")
g.V().valueMap()
g.V().branch(values("name")).option("tom", out()).option("lop", in()).option(none, valueMap())
g.V().branch(out.count()).option(0L, valueMap()).option(1L, out()).option(any, in())
g.V().group().by().by(values("name")).select(values).unfold()
g.V().out().count()
g.V().where(out().in().count().is(0))
g.V().fold()
g.V().values("name").fold()
g.V().out().groupCount()
g.V().values("name").groupCount()
g.V().out().group()
g.V().out().group().by("name")
g.V().out().group().by().by("name")
g.V().values("age").max()
g.V().values("age").min()
g.V().values("age").sum()
g.V().repeat(out()).times(4).valueMap()
g.V().repeat(out()).until(out().count().is(eq(0))).valueMap()
g.V().emit().repeat(out()).times(4).valueMap()
在文档使用中是否遇到以下问题
更多建议
匿名提交