In your example, you can pass the filter in directly now:
opts := options.FindOneAndUpdate().
SetArrayFilters(identifier).
SetReturnDocument(options.After)
In your example, you can pass the filter in directly now:
opts := options.FindOneAndUpdate().
SetArrayFilters(identifier).
SetReturnDocument(options.After)