Mixin query when updating document