unify collation support in topology

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.1.8
    • Affects Version/s: None
    • Component/s: Core
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

          // Check if we have collation support
          if (this.description.maxWireVersion < 5 && options.collation) {
            callback(new MongoError(`server ${this.name} does not support collation`));
            return;
          }
      

      From Dan: We do this check a lot. Can we make it DRY?

      Let's do it!

            Assignee:
            Matt Broadstone
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: