added _.omit(resource, '_id') for updating