Skip to content

continuos scope enrichment #57

@sdepold

Description

@sdepold

Hi Brian,

great lib. I'm just refactoring sequelize to use it :) One thing I would love to have is something like this:

var model = sql.define({ name: 'foo', columns: ['id', 'foo', 'bar'] })
var scope = model

scope = scope.select(model.id).select(model.foo)

This way it would be possible to spread the scope building logic over several functions which - each on its own - enriches the scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions