Skip to content

How can I save and get a saved object #10752

Answered by vkarpov15
quick007 asked this question in Q&A
Discussion options

You must be logged in to vote

What are you trying to do with await mongoose.get('Homepage')? mongoose.get() is a function for getting the current value of a global object.

Maybe you're just trying to do return res.status(200).json(orgName), or return res.status(200).json(await Homepage.findById(orgName))?

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@quick007
Comment options

@quick007
Comment options

@quick007
Comment options

Answer selected by quick007
Comment options

You must be logged in to vote
1 reply
@vkarpov15
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants