Developer Forum »
AqlQuery filter by node Address
36 posts

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

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

120 posts

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)

 

1