From cb3f6b60ad57fd44715ef2225ea5ad1cae691349 Mon Sep 17 00:00:00 2001 From: Alef Ojeda de Oliveira Date: Sun, 6 Aug 2023 18:52:37 -0300 Subject: [PATCH] fix CHANGELOG.md --- CHANGELOG.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78335b2..3277d71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ -## [Unreleased] +# [Release] ## [0.1.0] - 2023-08-05 - Initial release +- Add class `MongoApi::Request` and `MongoApi::Base` to handle requests to the API and to handle requests to the database in a simple way on MongoDb Atlas Data API. +- `MongoApi::Request` methods: + - `#find_one`: returns a document from a collection by filter and projection + - `#insert_one`: inserts a document into a collection + - `#insert_many`: inserts multiple documents into a collection + - `#update_one`: updates a document from a collection by filter + - `#update_many`: updates multiple documents from a collection by filter + - `#replace_one`: replaces a document from a collection by filter + - `#delete_one`: deletes a document from a collection by filter + - `#delete_many`: deletes multiple documents from a collection by filter +- `MongoApi::Base` methods: + - `#all`: returns all documents from a collection + - `#find`: returns a document from a collection by filter, projection, sort and limit + - `#insert`: inserts a document into a collection + - `#update`: updates a document from a collection by filter + - `#replace`: replaces a document from a collection by filter + - `#destroy`: deletes a document from a collection by filter