Skip to content

Only load relations as needed #6

@lourd

Description

@lourd

Hello, great library! I've been evaluating it and had a question about using the hasMany helper function. If you specify that a BookshelfType hasMany of something else, it looks like here in the code that it loads the relation as a second query. Is that correct?

Also, instead of using this.constructor.collection to call the static method on L31 I believe you could use BookshelfType.collection

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