def collection(vector_store) -> Generator:
    """Depending on uri, this could point to any type of cluster."""
    clxn = vector_store.collection
    clxn.insert_many([{"year": 2024}, {"country": "Canada"}])
    yield clxn
    clxn.drop()
Depending on uri, this could point to any type of cluster.
llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb/tests/test_index_commands.py