Builds a filter that filters mutations by given types.
Mutation types that should trigger persisting.
Builds a filter that filters mutations by given types.