Expose created_at timestamp in the collection summary API.

This commit is contained in:
Kishore Nallan 2018-09-01 16:26:26 +05:30
parent b35f73f22c
commit 87dcfb6f82

View File

@ -13,6 +13,7 @@ nlohmann::json collection_summary_json(Collection *collection) {
json_response["name"] = collection->get_name();
json_response["num_documents"] = collection->get_num_documents();
json_response["created_at"] = collection->get_created_at();
const std::vector<field> & coll_fields = collection->get_fields();
nlohmann::json fields_arr;