Minifies a given MongoDB update query based on fields restrictions (inclusion or exclusion).