Skip to content

Commit ae372ea

Browse files
authored
Export filter namespace from weaviate root without generics support (#304)
1 parent f7591d6 commit ae372ea

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/collections/filters/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe('Testing of the filter class with a simple collection', () => {
112112

113113
it('should filter a fetch objects query with a single filter and non-generic collection', async () => {
114114
const res = await client.collections.use(collectionName).query.fetchObjects({
115-
filters: client.collections.use(collectionName).filter.byProperty('text').equal('two'),
115+
filters: weaviate.filter.byProperty('text').equal('two'),
116116
});
117117
expect(res.objects.length).toEqual(1);
118118
const obj = res.objects[0];

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import { LiveChecker, OpenidConfigurationGetter, ReadyChecker } from './misc/ind
3838

3939
import weaviateV2 from './v2/index.js';
4040

41+
import filter from './collections/filters/index.js';
4142
import { ConsistencyLevel } from './data/replication.js';
4243
import users, { Users } from './users/index.js';
4344

@@ -254,6 +255,7 @@ const app = {
254255
AuthClientCredentials,
255256
configure,
256257
configGuards,
258+
filter: filter<any>(),
257259
reconfigure,
258260
permissions,
259261
};

0 commit comments

Comments
 (0)