How to add new property to an existing collection with V4 client

Description

With python V3 client, we can use the following to add a new property to a collection:

client.schema.property.create(collection_name, prop)

How can we do the same with V4 client?

Hi, you can do

        collection.config.add_property(Property(name="name", data_type=DataType.TEXT))
1 Like