Ejemplo n.º 1
0
 public override BsonValue Render()
 {
     return(new BsonDocument
     {
         { "$graphLookup", new BsonDocument
           {
               { "from", _from },
               { "startWith", _startWith.Render() },
               { "connectFromField", _connectFromField },
               { "connectToField", _connectToField },
               { "as", _as },
               { "maxDepth", () => _maxDepth.Value, _maxDepth.HasValue },
               { "depthField", _depthField, _depthField != null },
               { "restrictSearchWithMatch", () => _restrictSearchWithMatch.Render(), _restrictSearchWithMatch != null }
           } }
     });
 }
 public override BsonValue Render()
 {
     return(new BsonDocument("$match", _filter.Render()));
 }