DropCollectionField()
Drops a field from a collection.
pub async fn drop_collection_field(&self, request: DropCollectionFieldRequest) -> Result<()>
Request Syntax
let request = DropCollectionFieldRequest::builder()
.collection_name("books")
.field_name("vector")
.build()?;
REQUEST FIELDS:
database_name: Option<String>Name of the target database; uses the default database when empty.
collection_name: StringName of the collection to alter. Required.
field_name: Option<String>Name of the field to drop. Exactly one of
field_nameorfield_idmust be specified.field_id: Option<i64>ID of the field to drop. Exactly one of
field_nameorfield_idmust be specified.
RETURN TYPE:
Result<()>
RETURNS:
Returns an empty result indicating success. Returns Error on failure.
Example
let request = DropCollectionFieldRequest::builder()
.collection_name("books")
.field_name("vector")
.build()?;
client.drop_collection_field(request).await?;