How to use dapi.entity.filter method properly

Dear DG team,

Is it possible to build a OR-query for the grok.dapi.users.filter method? In my example I always only get the first and last expression matched in the result.

Example:
grok.dapi.users.filter('login = "user1" || login = "user2" || login = "user3" || login = "user4"').list().then((list) => ....);

Expected result: list to be an array with all four users in
Actual result: list is an array but only the first and last (‘user1’ and ‘user4’) are in the list.

I’ve tested the behaviour by moving around the users but the behaviour stays the same!

Indeed, it’s a bug.
Let me fix it.

Thanks for reporting!

2 Likes

Fixed in 0.116.0 version

2 Likes