Member of Database List

Hello,

I have a WQL query:

from doc.objects(SomeClass) as obj where obj.DataBaseList like ‘%value%’

this wil return a list of objects where the value is in a databaselist field

I would have suspected that

from doc.objects(SomeClass) as obj where ‘value’ member of obj.DataBaseList

woud also work, but this seems to work only on a static list. Is there a clean way to query if a value is in a database list?

With Regards
Jurjen

If I look at https://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module I see there is an example with a Database List and member of:

where doc.fullName <> 'XWiki.ArticleClassTemplate' and
  :category member of doc.object(Blog.BlogPostClass).category

so it should work I think.