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

Custom filter with weaviate typescrit v3

$
0
0

I am using weawiate typescript version3, I have below code :

const fileNameArrayFromPostgres = [ 'The-Unhoneymooners-PDF-Book-pages-3.pdf', 'The-Unhoneymooners-PDF-Book-pages-4.pdf' ] 
const startUrlArrayFromPostgres = [ '[https://www.example.com](https://www.example.com/)', '[https://www.cibc.ca](https://www.cibc.ca/)' ]

deleteResult = await myCollection.data.deleteMany(combinedFilter, { dryRun: true, });

I want to you help me write a logic of "combinedFilter "to delete items meet below requirements:

there are property named “file_name” and “start_url” inside weaviate collection.

i want to delete items that’s “file_name” not inside fileNameArrayFromPostgres, and “start_url” not inside startUrlArrayFromPostgres


Viewing all articles
Browse latest Browse all 3605

Trending Articles