Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3605

Custom filter with weaviate typescrit v3

$
0
0

Hi @alisha_liu,
There is no filter for doesn't contain or a not operator in Weaviate.

There is a GH issue with a similar request if you would like to add you comment or vote in there.

Here is an example of how you could delete objects where the values match. But that is the opposite of what you asked for :sweat:

import weaviate, { Filters } from 'weaviate-client';

myCollection = client.collection.get("MyCollection")

await myCollection.data.deleteMany(
  Filters.and(
    myCollection.filter.byProperty('file_name').containsAny(fileNameArrayFromPostgres),
    myCollection.filter.byProperty('start_url').containsAny(startUrlArrayFromPostgres)
  ),
  { dryRun: true, }
)

Viewing all articles
Browse latest Browse all 3605

Trending Articles