add_document

The function add_document(data_point, collection_name) uploads a single document to a collection

Input -

  • data_point – Represents the document to upload. The structure of each document must be according to the database schema configuration file. Must be of type dictionary.

  • collection_name – Specifies the name of the Collection into which to load the document.

Example –

hyperspace_client.add_document(data_point, collection_name)

Response

The following response should be received –

{'status': 'OK', 'code': 200, 'message': 'Document was succesfully added'}

Last updated

#108: Max's Nov 6 changes

Change request updated