Help Needed on queryDocument

Can any one provide samples/articles/references on how to use “pub.web:queryDocument” service. (other than existing webMethdos Documentation)

Thanks in advance