mirror of https://gitee.com/bigwinds/arangodb
added derived file
This commit is contained in:
parent
a2a77f7c0d
commit
9fb20d5859
|
@ -1223,6 +1223,25 @@ SimpleQueryWithin.prototype._PRINT = function (context) {
|
||||||
context.output += text;
|
context.output += text;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// @brief adds the distance attribute
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
SimpleQueryWithin.prototype.distance = function (attribute) {
|
||||||
|
var clone;
|
||||||
|
|
||||||
|
clone = this.clone();
|
||||||
|
|
||||||
|
if (attribute) {
|
||||||
|
clone._distance = attribute;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
clone._distance = "distance";
|
||||||
|
}
|
||||||
|
|
||||||
|
return clone;
|
||||||
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// --SECTION-- SIMPLE QUERY WITHINRECTANGLE
|
// --SECTION-- SIMPLE QUERY WITHINRECTANGLE
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue