routier-collection / plugins/replication/src / byCollection
Variable: byCollection()
constbyCollection: <T>(resolvers,fallback?) =>ConflictResolver<T>
Defined in: core/dist/plugins/conflicts.d.ts:54
Picks a resolver by collection name, and fallback for every other collection.
Type Parameters
T
T extends object = UnknownRecord
Parameters
resolvers
Readonly<Record<string, ConflictResolver<T>>>