81
resolver ReplicationResolver,
82
mutations ...Mutation,
84
>
if resolver == nil {
85
return nil, serviceerror.NewInvalidArgument("replicationResolver must be provided")
86
}
88
>
info: detail.Info,
89
>
config: detail.Config,
90
>
configVersion: detail.ConfigVersion,
91
>
customSearchAttributesMapper: CustomSearchAttributesMapper{
92
>
fieldToAlias: detail.Config.CustomSearchAttributeAliases,
93
>
aliasToField: util.InverseMap(detail.Config.CustomSearchAttributeAliases),
94
>
},
95
>
replicationResolver: resolver,
96
>
}
97
>
98
>
for _, m := range mutations {
99
m.apply(ns)
100
}
101
103
}
104