Document.with accepts both field and fields with type.