An instance of DatabaseService for database operations.
The Mongoose model for a country document.
Save a new country to the database.
The country data to save.
A promise that resolves with the saved Country document or an error.
addCountry
Retrieve all countries from the database.
A promise that resolves with an array of countries or an error.
findAllCountries
Retrieve a country from the database by a specified identifier.
The conditions to use for the query.
A promise that resolves with the retrieved Country document or an error.
findCountryByIdentifier
Update a country's data in the database by a specified identifier.
The new data for the country.
The identifier to use for the query.
A promise that resolves with the updated Country document or an error.
updateCountryById
Generated using TypeDoc
Description
A repository for managing country data.