Giter Club home page Giter Club logo

express-mongodb-blog's Introduction

Blog - MongoDB Operators

This project injects fake library DB and lets you practice querying with MongoDB.

Getting started:

  1. git clone this repo
  2. Use cd to the repo folder and run npm install
  3. Run npm run populate to insert the fake data to your MongoDB.
  4. Open Compass and see the new data!

Your tasks:

Filter the data according to the following criterias. Use the official documentation: https://docs.mongodb.com/manual/reference/operator/query/

  1. Users with the first name "noah" (3 documents)
  2. Users with the title "miss" and first name "melissa" (2 documents)
  3. Posts with the tag "culpa" (44 documents)
  4. Posts with more than 900 likes (48 documents)
  5. Posts with less than 10 likes with the tag "quis" (1 document)
  6. Posts that were created on this date: "2015-10-05 13:34:49.000" (1 document)
  7. Posts that were created after this date: "2017-02-07 06:32:12.000" (222 documents)
  8. Posts that were created after July 1st, 2018 (138 documents)
  9. How many posts got between 100 to 200 likes? (49 documents)
  10. How many comments got the post with the greatest amount of likes?

express-mongodb-blog's People

Contributors

evyros avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.