Created
December 20, 2020 17:27
-
-
Save ranamahmud/e7b7717171c09686642b92e17ecd630f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userId = db.user.findOne( | |
{ "phoneNumber" : "phoneNumber" } | |
); | |
const uid = userId._id; | |
const employee = db.user.findOne( | |
{ "userId" : uid } | |
); | |
const data = { | |
userId.fullName, | |
userId.age, | |
userId.phoneNumer, | |
employee.typeOfEmployee, | |
employee.salary | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment