Description
Here i have collection
Book
Properties
{
name: chapter_number, datatype : text[ ]
}
data = [ chapter_1, chapter_2, chapter_3]
I have written code to populated data using weaivate V4. It is working fine
Suppose i was writing my thesis, therefor i need to add more chapter…
new_data=[chapter_4]
I’m using update method to add
def update_records(client, uuid, tenant, class_name, data):
class_obj = client.collections.get(class_name).with_tenant(tenant)
class_obj.data.update(
uuid=uuid,
properties=data,
)
Then code is throwing error such as chapter_number is array not text ?
Help me to solve this use case…
Note : consider data into string format