---
title: "Eric (@javasper) | Hashnode"
description: "Full-Stack Web Developer. Read the latest articles by Eric on Hashnode."
url: "https://hashnode.com/@javasper"
---

@javasper

# Eric

@javasper · Toronto, Canada · Joined October 2021

Full-Stack Web Developer

[Website](https://javasper.teachable.com/)

### [Creating A Custom Event In JavaScript: Simplest Explanation](https://javasper.hashnode.dev/creating-a-custom-event-in-javascript-simplest-explanation?utm_source=hashnode&utm_medium=feed)

How to use JavaScript to create and emit your own custom events.

1 min read · [javasper.hashnode.dev](https://javasper.hashnode.dev/creating-a-custom-event-in-javascript-simplest-explanation?utm_source=hashnode&utm_medium=feed)

[Jan 23, 2023](https://hashnode.com/posts/creating-a-custom-event-in-javascript-simplest-explanation/63cec02ad7cfa3dc93bdad73)

### [How To Get The Total Number Of Returned Rows From A Query In MongoDB: Simplest Explanation](https://javasper.hashnode.dev/how-to-get-the-total-number-of-returned-rows-from-a-query-in-mongodb-simplest-explanation?utm_source=hashnode&utm_medium=feed)

In this post, I will show you the quickest way to get the total number of results that your query returned. When I was looking online, I could only find long-winded answers to this question, so here is my attempt at a simple and straight solution. ...

1 min read · [javasper.hashnode.dev](https://javasper.hashnode.dev/how-to-get-the-total-number-of-returned-rows-from-a-query-in-mongodb-simplest-explanation?utm_source=hashnode&utm_medium=feed)

[Oct 6, 2022](https://hashnode.com/posts/how-to-get-the-total-number-of-returned-rows-from-a-query-in-mongodb-simplest-explanation/633e2908482cbecef103c77a)

### [How To Find Data In A Collection Using MongoDB?](https://javasper.hashnode.dev/how-to-find-data-in-a-collection-using-mongodb?utm_source=hashnode&utm_medium=feed)

In this post, we will learn how to get data from a collection using Express.js and MongoDB. Usually, this is the first thing you learn how to do when you are learning MongoDB. The syntax is as follows: Model.find({/\*your search criteria\*/}) Model i...

2 min read · [javasper.hashnode.dev](https://javasper.hashnode.dev/how-to-find-data-in-a-collection-using-mongodb?utm_source=hashnode&utm_medium=feed)

[Oct 5, 2022](https://hashnode.com/posts/how-to-find-data-in-a-collection-using-mongodb/633dd9cc662b2d2e54349e4a)

### [How To Add A Row To The Collection](https://javasper.hashnode.dev/how-to-add-a-row-to-the-collection?utm_source=hashnode&utm_medium=feed)

The easiest way that we can add a new row to a collection in our MongoDB is to use Model.create({}). If we want to add a row (you can think of row as meaning "new data") to our collection Name we could write: Name.create({write the column names and v...

2 min read · [javasper.hashnode.dev](https://javasper.hashnode.dev/how-to-add-a-row-to-the-collection?utm_source=hashnode&utm_medium=feed)

[Oct 5, 2022](https://hashnode.com/posts/how-to-add-a-row-to-the-collection/633dd701662b2d2e54349e43)

### [How To Send Data From A Form Using Express?](https://javasper.hashnode.dev/how-to-send-data-from-a-form-using-express?utm_source=hashnode&utm_medium=feed)

How To Send Data From A Form Using Express

2 min read · [javasper.hashnode.dev](https://javasper.hashnode.dev/how-to-send-data-from-a-form-using-express?utm_source=hashnode&utm_medium=feed)

[Oct 5, 2022](https://hashnode.com/posts/how-to-send-data-from-a-form-using-express/633dd498d32daf9721b32211)
