From 8a678e9f1d323700773ab2530a137f0346036dce Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Tue, 2 Feb 2021 16:54:27 -0500 Subject: [PATCH] fix(operations): make every CollationOptions property optional except `locale` (#2727) --- src/operations/command.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/operations/command.ts b/src/operations/command.ts index 8646dca78a..199862c4b2 100644 --- a/src/operations/command.ts +++ b/src/operations/command.ts @@ -16,13 +16,14 @@ const SUPPORTS_WRITE_CONCERN_AND_COLLATION = 5; /** @public */ export interface CollationOptions { locale: string; - caseLevel: boolean; - caseFirst: string; - strength: number; - numericOrdering: boolean; - alternate: string; - maxVariable: string; - backwards: boolean; + caseLevel?: boolean; + caseFirst?: string; + strength?: number; + numericOrdering?: boolean; + alternate?: string; + maxVariable?: string; + backwards?: boolean; + normalization?: boolean; } /** @public */