-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Core
-
None
-
Empty show more show less
// 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!