Viktar
1
Description
Getting the next error while trying to filter the collection on date type field
Error: Query call with protocol gRPC failed with message: /weaviate.v1.Weaviate/Search UNKNOWN: unknown value type
Collection has a date field ‘importDate’
const collection = client.collections.get('CollectionName')
const response = await collection.data.deleteMany(
collection.filter.byProperty('importDate').lessOrEqual((new Date()).toISOString())
)
Server Setup Information
- Docker image: semitechnologies/weaviate:1.25.8
- Deployment Method: docker
- Client Language and Version: “weaviate-client”: “^3.0.5”
hi @Viktar !!
Welcome to our community
I believe this is the same case of:
you are passing a string object.
So the client is inferring from that value to build the query.
Can you try passing the date object directly?
Thanks!