node-orm2 icon indicating copy to clipboard operation
node-orm2 copied to clipboard

hasOne with omit() and only() feature?

Open hebbian opened this issue 10 years ago • 4 comments

Is there a way to limit the automatic fetch of association fields just like omit() or only() does on hasOne relationship if I set autoFetch to true?

Thanks.

hebbian avatar Jun 24 '15 03:06 hebbian

Need answer please

hebbian avatar Jun 25 '15 06:06 hebbian

?

hebbian avatar Jun 27 '15 07:06 hebbian

Bump

hebbian avatar Dec 10 '15 07:12 hebbian

I believe you can pass autoFetch: false when getting/finding but it doesn't allow specifying which models to skip; it will skip all.

dxg avatar Dec 14 '15 01:12 dxg