queryDocument complete