Skip to content

Commit

Permalink
fix CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alef Ojeda de Oliveira committed Aug 6, 2023
1 parent a5effbe commit cb3f6b6
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cb3f6b6

Please sign in to comment.