예제 #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)})"));
 }