示例#1
0
        public GremlinQuery V(string id, string partitionKey)
        {
            var q = new GremlinQuery(_connector, "");

            q._query = $"g.V([{q.ComposeParameter(id)},{q.ComposeParameter(partitionKey)}])";
            return(q);
        }
示例#2
0
        public GremlinQuery V(string id)
        {
            var q = new GremlinQuery(_connector, "");

            q._query = $"g.V({q.ComposeParameter(id)})";
            return(q);
        }
示例#3
0
 public static GremlinQuery E(this GremlinQuery queryBase, string edgeLabel)
 {
     return(new ComposedGremlinQuery(queryBase, $"E({queryBase.ComposeParameter(edgeLabel)})"));
 }
示例#4
0
 public static GremlinQuery SubGraph(this GremlinQuery queryBase, string graphLabel)
 {
     return(new ComposedGremlinQuery(queryBase, $"subgraph({queryBase.ComposeParameter(graphLabel)})"));
 }
示例#5
0
 public static GremlinQuery Limit(this GremlinQuery queryBase, int items)
 {
     return(new ComposedGremlinQuery(queryBase, $".limit({queryBase.ComposeParameter(items)})"));
 }
示例#6
0
 public static GremlinQuery Range(this GremlinQuery queryBase, GraphScope scope, int lowEnd, int highEnd)
 {
     return(new ComposedGremlinQuery(queryBase, $".range({scope.ToString().ToLower()},{queryBase.ComposeParameter(lowEnd)},{queryBase.ComposeParameter(highEnd)})"));
 }
示例#7
0
 public static GremlinQuery Range(this GremlinQuery queryBase, int lowEnd, int highEnd)
 {
     return(new ComposedGremlinQuery(queryBase, $".range({queryBase.ComposeParameter(lowEnd)},{queryBase.ComposeParameter(highEnd)})"));
 }