/** * Given the name of a collection, returns the corresponding lock collection's name. * @author Benedikt Arnarsson * @param collectionName the collection whose lock collection we want to find. * @returns the name of the corresponding lock collection. */ const getLockCollectionName = (collectionName: string): string => { return `${collectionName}_locks`; }; export default getLockCollectionName;