diff --git a/packages/agent/src/routes/capabilities.ts b/packages/agent/src/routes/capabilities.ts index 83495da8b..81f620314 100644 --- a/packages/agent/src/routes/capabilities.ts +++ b/packages/agent/src/routes/capabilities.ts @@ -34,6 +34,7 @@ export default class Capabilities extends BaseRoute { nativeQueryConnections: Object.keys(this.dataSource.nativeQueryConnections).map( connectionName => ({ name: connectionName }), ), + canUseProjectionOnGetOne: true, collections: collections?.map(collection => ({ name: collection.name, diff --git a/packages/agent/test/routes/capabilities.test.ts b/packages/agent/test/routes/capabilities.test.ts index b8247b87b..297f38e0a 100644 --- a/packages/agent/test/routes/capabilities.test.ts +++ b/packages/agent/test/routes/capabilities.test.ts @@ -68,6 +68,7 @@ describe('Capabilities', () => { expect(context.response.body).toEqual({ nativeQueryConnections: [{ name: 'main' }, { name: 'replica' }], + canUseProjectionOnGetOne: true, collections: [], }); }); @@ -86,6 +87,7 @@ describe('Capabilities', () => { expect(context.response.body).toEqual({ nativeQueryConnections: [], + canUseProjectionOnGetOne: true, collections: [], }); }); @@ -102,6 +104,7 @@ describe('Capabilities', () => { expect(context.response.body).toEqual({ nativeQueryConnections: [], + canUseProjectionOnGetOne: true, collections: [], }); }); @@ -120,6 +123,7 @@ describe('Capabilities', () => { expect(context.response.body).toEqual({ nativeQueryConnections: [], + canUseProjectionOnGetOne: true, collections: [ { name: 'books',