Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ npm install

Steps to run:
node app

Can you design and write small program(Node.js and Mongo) to find total users and total unique users who viewed a product on daily/weekly/monthly/Custom date from the following collection.

String : UserId;
Date : ViewDate;
String : ProductId;

It has million of documents in a collection name - userView and it gets populated whenever a user view a product on some site.