Forum list » General discussion »
AqlQuery filter by node Address
Pages:  1
(36 posts)

AqlQuery filter by node Address

Hi devs!

I have a problem querying content by address property. This code:

WAFContext.Session.Query<MyContent>().Where(AqlContent.Address == address) 

returns all nodes of type MyContent. I guess there is some other way to do this.

(36 posts)

Re:AqlQuery filter by node Address

I guess I will answer myself. Actually calling .Execute() does the trick. 

(104 posts)

Re:AqlQuery filter by node Address

Ok, remember that all addresses that are set to "automatic" will begin with the char: #

(This is not visible in UI, but is used as an indicator to Webnodes that the address must be regenerated on every save. When you query the address field directly you must query both with and without this char at the start)