Skip to content

Export filter namespace from weaviate root without generics support #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/collections/filters/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('Testing of the filter class with a simple collection', () => {

it('should filter a fetch objects query with a single filter and non-generic collection', async () => {
const res = await client.collections.use(collectionName).query.fetchObjects({
filters: client.collections.use(collectionName).filter.byProperty('text').equal('two'),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh my, I had no idea you had to do the whole prefixing with client.collections.use... to use filters

good improvement!

filters: weaviate.filter.byProperty('text').equal('two'),
});
expect(res.objects.length).toEqual(1);
const obj = res.objects[0];
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { LiveChecker, OpenidConfigurationGetter, ReadyChecker } from './misc/ind

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

import filter from './collections/filters/index.js';
import { ConsistencyLevel } from './data/replication.js';
import users, { Users } from './users/index.js';

Expand Down Expand Up @@ -254,6 +255,7 @@ const app = {
AuthClientCredentials,
configure,
configGuards,
filter: filter<any>(),
reconfigure,
permissions,
};
Expand Down
Loading