Accessing Data

Get Document

The following describes how to retrieve a document from a Hyperspace Collection.

document = hyperspace.get_document(collection_name, document_id)

document_id is a string. This is the identifier that you specified when the data point was uploaded into the Hyperspace Collection and this is the identifier that is returned as the results of a query, as described in Accessing Query Results.

Delete a Document

The following describes how to delete a document from a Hyperspace Collection –

hyperspace.delete_document(collection_name, document_id)

Update a Document

The following describes how to update a document in a Hyperspace Collection –

hyperspace.update_document(document, collection_name)

Where

document is a hyperspace.document object that must include the id of the document to be updated under the key 'id'.

Last updated

#108: Max's Nov 6 changes

Change request updated