Skip to content

Commit 2c5bc94

Browse files
committed
Done theNewBoston course on MongoDB
1 parent 617ecbb commit 2c5bc94

File tree

2 files changed

+44
-0
lines changed
  • Courses/Database + Application Design/MongoDB/TheNewBoston - MongoDB for Beginners Tutorials

2 files changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
`$gt` Greater then
2+
`$gte` Greater then or equal
3+
4+
`$lt` Less then
5+
`$lt` Less then or equal
6+
7+
`$or` Give me result where they have one of the arguments.
8+
9+
Example:
10+
11+
```js
12+
db.players.find({
13+
$or: [
14+
{"position": "Left Wing"},
15+
{"position": "Right Wing"},
16+
]
17+
})
18+
```
19+
20+
Example if we want only some stuff coming from the search.
21+
22+
```js
23+
db.players.find(
24+
{"position": "Center"},
25+
{"name": 1}
26+
)
27+
```
28+
Here we get only the name coming but with the id too. If we dont want the id we need to write:
29+
30+
```js
31+
db.players.find(
32+
{"position": "Center"},
33+
{"name": 1, _id: 0}
34+
)
35+
```
36+
37+
We can limit the query with the add of `.limit(number)`

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ If you have some resources to shared please do. I'm eager to find new stuff and
2727

2828
- [ ] [8 Beautiful Ruby on Rails Apps in 30 Days & TDD](https://www.udemy.com/8-beautiful-ruby-on-rails-apps-in-30-days/learn/v4/overview)
2929

30+
- Database + Application Design
31+
32+
- MongoDB
33+
34+
- [x][TheNewBoston - MongoDB for Beginners Tutorials](https://www.youtube.com/playlist?list=PL6gx4Cwl9DGDQ5DrbIl20Zu9hx1IjeVhO)
35+
3036
- JavaScript
3137

3238
- [x] [WatchAndCode - Practical JavaScript](https://watchandcode.com/courses/practical-javascript)
@@ -302,6 +308,7 @@ If you have some resources to shared please do. I'm eager to find new stuff and
302308
- [x] [10 Quick Tips for Sketch 3](https://www.youtube.com/watch?v=WcCZi4A2mY4)
303309
- [x] [Prototyping a refresh animation with Flinto and Sketch 3](https://www.youtube.com/watch?v=L4U4rVTKzEI)
304310
- [x] [Icons Animations Using Flinto](https://www.youtube.com/watch?v=bbx_P-52oro)
311+
- [x] [Book App - Screen Transition Tutorial with Principle](https://www.youtube.com/watch?v=KHlqDRQdnic)
305312

306313
- WordPress
307314

0 commit comments

Comments
 (0)