remove fields in the query options that point to a linked document