Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper .collection(...) method to database #127

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

kirugan
Copy link
Contributor

@kirugan kirugan commented Jan 16, 2025

I noticed that every time we want to access mongo collection we call it the same way:

db.client.Database(db.dbName)

which seems to be redunant

@kirugan kirugan changed the title Added helper .collection(...) method to database Add helper .collection(...) method to database Jan 16, 2025
@kirugan kirugan merged commit e7fa5d5 into main Jan 16, 2025
11 checks passed
@kirugan kirugan deleted the kirugan/add-collection-method-to-db branch January 16, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants