HstQuery for custom property

Hi,
I want to build a hstQuery for a custom property. My node has a custom compound where the property is stored.

When I build a query with a constraint like this: .constraint(“myproject:title”).contains(“test”)
or add filter to the query: addContains(“myproject:title”, “test”)
nothing will be found.

If I search with: .constraint(".").contains(“test”) or addContains(".", “test”) the documents will be found.

Do I have to register my properties somehow to use them in a hstQuery? Or is my query wrong?

Thanks in advance

see:

.where(constraint("example:address/example:street").contains(query))

Thank you!

I already tried that, but for “example:address” I took the name of the compoundType instead of the name of the node.