diff --git a/packages/devtools-connect/src/connect.spec.ts b/packages/devtools-connect/src/connect.spec.ts index 79c701cd..5c346acd 100644 --- a/packages/devtools-connect/src/connect.spec.ts +++ b/packages/devtools-connect/src/connect.spec.ts @@ -493,6 +493,16 @@ describe('devtools connect', function () { ).to.equal(false); }); + it('returns false if the OIDC_CALLBACK is set', function () { + expect( + isHumanOidcFlow('mongodb://example/?authMechanism=MONGODB-OIDC', { + authMechanismProperties: { + OIDC_CALLBACK: () => Promise.resolve({ accessToken: 'abc123' }), + }, + }), + ).to.equal(false); + }); + it('returns false if the ENVIRONMENT url option is set', function () { expect( isHumanOidcFlow( diff --git a/packages/mongodb-constants/src/stage-operators.ts b/packages/mongodb-constants/src/stage-operators.ts index 8f832910..9c35c531 100644 --- a/packages/mongodb-constants/src/stage-operators.ts +++ b/packages/mongodb-constants/src/stage-operators.ts @@ -900,7 +900,7 @@ const STAGE_OPERATORS = [ description: 'Performs a full-text search on the specified field(s).', comment: `/** * index: The name of the Search index. - * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. + * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms. * compound: Combines ops. * span: Find in text field regions. * exists: Test for presence of a field. @@ -912,7 +912,8 @@ const STAGE_OPERATORS = [ index: '\${1:string}', text: { query: '\${2:string}', - path: '\${3:string}' + path: '\${3:string}', + matchCriteria: '\${4:any}', } }`, },