Esempio n. 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);
        }
Esempio n. 2
0
        public GremlinQuery V(string id)
        {
            var q = new GremlinQuery(_connector, "");

            q._query = $"g.V({q.ComposeParameter(id)})";
            return(q);
        }
Esempio n. 3
0
 public static GremlinQuery E(this GremlinQuery queryBase, string edgeLabel)
 {
     return(new ComposedGremlinQuery(queryBase, $"E({queryBase.ComposeParameter(edgeLabel)})"));
 }
Esempio n. 4
0
 public static GremlinQuery SubGraph(this GremlinQuery queryBase, string graphLabel)
 {
     return(new ComposedGremlinQuery(queryBase, $"subgraph({queryBase.ComposeParameter(graphLabel)})"));
 }
Esempio n. 5
0
 public static GremlinQuery Limit(this GremlinQuery queryBase, int items)
 {
     return(new ComposedGremlinQuery(queryBase, $".limit({queryBase.ComposeParameter(items)})"));
 }
Esempio n. 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)})"));
 }
Esempio n. 7
0
 public static GremlinQuery Range(this GremlinQuery queryBase, int lowEnd, int highEnd)
 {
     return(new ComposedGremlinQuery(queryBase, $".range({queryBase.ComposeParameter(lowEnd)},{queryBase.ComposeParameter(highEnd)})"));
 }