How To Return The Last Push() Embedded Document
I'm stuck trying to figure out if this is possible. Using the blog example from mongoose to demonstrate, however my actual use case is slightly more complicated: var Comments = new
Solution 1:
I guess that the problem you're trying to solve is to how to update the page after a client posts a comment, right?
So, you're inserting a new comment. This means that you already have its data. Perform an insert and return the data to the client. Or, better yet, return a simple ack, since client also has full comment data and can render it by itself.
Post a Comment for "How To Return The Last Push() Embedded Document"