MAX: r([]).max(), SPLIT: r([]).split(), UNGROUP: r([]).ungroup(), RANDOM: r.random(), CHANGES: r([]).changes(), ARGS: r.args([]), BINARY: r.binary(new Buffer(0)), GEOJSON: r.geojson({}), TO_GEOJSON: r({}).toGeojson(), POINT: r.point(0, 0), LINE: r.line([], []), POLYGON: r.polygon([], [], []), DISTANCE: r.distance([], []), INTERSECTS: r.intersects(), INCLUDES: r([]).includes([]), CIRCLE: r.circle([], 0), GET_INTERSECTING: r([]).getIntersecting([]), FILL: r.line([], []).fill(), GET_NEAREST: r([]).getNearest([]), POLYGON_SUB: r.polygon([], [], []).polygonSub([]), MINVAL: r.minval, MAXVAL: r.maxval } /* istanbul ignore next */ var extended = filter({ FOLD: r([]).fold && r([]).fold('', function () { return true }) }, exists) assign(instances, extended)
}), r.expr({a: 'b'}).merge({b: [1, 2, 3]}), r.js('str1' + 'str2'), r.table('posts').map(function (post) { return post.merge({ comments: r.table('comments').getAll(post('id'), {index: 'postId'}).coerceTo('array') }) }), r.expr('foo').typeOf(), r.table('marvel').info(), r.json('[1, 2, 3]'), r.table('hero').get(1).toJSON(), r.table('posts').insert(r.http('http://httpbin.org/get')), r.uuid(), r.table('geo').insert({ id: 300, name: 'Hayes Valley', neighborhood: r.circle([-122.423246, 37.779388], 1000) }), r.distance(r.point(-122.423246, 37.779388), r.point(-117.220406, 32.719464), {unit: 'km'}), r.table('geo').insert({ id: 201, rectangle: r.line( [-122.423246, 37.779388], [-122.423246, 37.329898], [-121.886420, 37.329898], [-121.886420, 37.779388] ) }), r.table('geo').get(201).update({ rectangle: r.row('rectangle').fill() }, {nonAtomic: true}), r.table('geo').insert({