Skip to content

autoFetch does not work with extendsTo relations #323

@ptnplanet

Description

@ptnplanet

Is this an intended behavior? It seems to me, that extendsTo relations ignore the autoFetch option. Regardless if the option is defined on the extension or the query itself.

Here is an example, that does not work as expected.

var User = db.define('user', { /* ... */ });
var Account = User.extendsTo('account', { /* ... */ }, { autoFetch: true });

User.find({ /* */ }, { autoFetch: true }, /* ... */);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions