Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getMostViews = () => {
- let docRef = db.collection('notes');
- let firstThree = docRef.orderBy('views', 'desc').limit(3);
- var query = firstThree.get().then(res =>{
- res.forEach(item =>{
- console.log(item.data())
- })
- })
- }
- //Work in progress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement