.insert() is successful, but the following resulting {result:{}} in Postman. How do I send the whole object in screen back so the client can query properties?
XDevApi How to Send Back the Result of .insert()
126 Views Asked by Jeb50 At
1
There are 1 best solutions below
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in MYSQL-X-DEVAPI
- MySQL X DevAPI connectors bind dont work with bytes
- Is there a way to use wildcards with '=' in the nested document in x devapi
- Any tutorials available for using X Dev Api in MySql Document db in Java application
- How to update JSON value in mysql database using X Dev API for relational table
- trouble with mysql_xdevapi extension
- How to get rows as array of JSON object instead of array of array in MySQL X DevAPI select query?
- How to get raw SQL query from MySQL X DevAPI SQL CRUD functions?
- Node.js, Express.js and @mysql/xdevapi based Boilerplate code?
- DATE_ADD() is not working in MySQL XDev API with Node.js
- Using MySql Document Store in Quarkus give exception "java.lang.NoClassDefFoundError: com/google/protobuf/Message" while creating session
- Reconnect logic on connection close in X DevAPI of MySql using @mysql/xdevapi module in Node.js
- How do I solve this error: "SQL error: too many arguments"
- Initialize cobject with move assignment/constructor c++ in another class constructor
- connector/node.js collection.add().execute() seems to only work once
- X devAPI batch insert extremely slow
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

You can't because the
Resultinstance isn't directly serializable to JSON, which in the end, is the format that gets sent back to the client via the HTTP response. You need to build a plain JavaScript object on the server side containing whatever properties you need, which in turn will be properly serialized to JSON.In the case of a regular
insert(), eventually, the only "interesting" data might be the number of items that were inserted, theAUTO_INCREMENTcount (when it applies) and details about any warnings that have been generated. Everything else is not applicable to this kind of operation.Disclaimer: I'm the lead developer of the MySQL X DevAPI Connector for Node.js