Skip to content

Feature: Support for ES6 Lambda in JS API #4821

@AdamBrodzinski

Description

@AdamBrodzinski

I'm just starting out and I noticed how awesome the API is. I think it would be an awesome feature if you could match the Python syntax.

example:

    // in JavaScript
    r.table('users').filter(user => user.age > 30).run(conn, callback)

    // instead of 
    r.table('users').filter(r.row('age').gt(30)).run(conn, callback)

   // python eq.
    r.table('users').filter(lambda user: user['age'] > 30).run(conn)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions