You've misunderstood the purpose of this block I think.  We aren't doing `{ field: field }` but rather `{ username: id }` or `{ email: id }` or `{ _id: id }`.  Thus we create the empty `query` and assign `id` as the value for `query[field]`.