diff --git a/packages/compass-query-bar/src/utils/get-query-attributes.spec.ts b/packages/compass-query-bar/src/utils/get-query-attributes.spec.ts index a0096bd0146..82a6e2cd244 100644 --- a/packages/compass-query-bar/src/utils/get-query-attributes.spec.ts +++ b/packages/compass-query-bar/src/utils/get-query-attributes.spec.ts @@ -27,6 +27,7 @@ describe('get-query-attributes', function () { skip: 1, limit: 20, update: { $set: { a: 1 } }, + hint: { $natural: 1 }, }) ).to.deep.equal({ filter: { @@ -36,6 +37,7 @@ describe('get-query-attributes', function () { skip: 1, limit: 20, update: { $set: { a: 1 } }, + hint: { $natural: 1 }, }); }); }); diff --git a/packages/compass-query-bar/src/utils/get-query-attributes.ts b/packages/compass-query-bar/src/utils/get-query-attributes.ts index 515b5ee45ee..a4fe5f8e97f 100644 --- a/packages/compass-query-bar/src/utils/get-query-attributes.ts +++ b/packages/compass-query-bar/src/utils/get-query-attributes.ts @@ -9,6 +9,7 @@ export const getQueryAttributes = ({ limit, skip, update, + hint, }: Partial): Partial => { const attributes = { filter, @@ -18,6 +19,7 @@ export const getQueryAttributes = ({ limit, skip, update, + hint, }; Object.keys(attributes).forEach((k) => { const key = k as keyof typeof attributes;