Member of Database List


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

If I look at 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.