MongoDB Go Driver 2.0 options.ArrayFilters seems to be gone

In your example, you can pass the filter in directly now:

opts := options.FindOneAndUpdate().
SetArrayFilters(identifier).
SetReturnDocument(options.After)