docs: function decorateWithCollation(command, target, options) {
    const topology = target.s && target.s.topology;
  
    if (!topology) {
      throw new TypeError('parameter "target" is missing a topology');
    }
  
    const capabilities = target.s.topology.capabilities();
    if (options.collation && typeof options.collation === 'object') {
      if (capabilities && capabilities.commandsTakeCollation) {
        command.collation = options.collation;
      } else {
        throw new MongoError(`server ${topology.s.coreTopology.name} does not support collation`);
      }
    }
  }