Skip to content

Builtin query method #3

@zbyte64

Description

@zbyte64

Currently the user has to construct a Query object separately. The client should have a helper method to make this process more natural. Borrowing from typical ORM design it would be something like:

var query = client.query('widget').where({color: 'red'});
var widgets = query.fetch();

fetch would return an iterator from the blessed method created in #2

When es6 proxy objects happen, we might be able to do away with the need to explicitly call fetch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions