Monday 30 December 2019

Filtering relations with TypeOrm

anyone knows how I filter relations with typeorm?const currentUser = await User.findOne( { email: user.email }, { relations: ['items'] } );Now let's say I only want items with status "available", how would I filter this?

Submitted December 31, 2019 at 02:07AM by roconf

No comments:

Post a Comment