create_collection
The function create_collection(schema, collection_name)
creates a new collection, according to the provided schema
configuration.
input–
schema – Specifies the path to the configuration file (for example, \schema.json) that you created locally on your machine, as described in Creating a Database Schema Configuration File.
collection_name – Specifies the name of the collection to be created in the Hyperspace database. You can specify any name as long as it is unique to your Hyperspace Collection.
Example –
Response
The following response should be received –
{'status': 'OK', 'code': 200, 'message': 'Collection was successfully created'}
Last updated