#nUpserted not showing when upsert
1 messages · Page 1 of 1 (latest)
Hi There!
Thanks for reaching out to us. One of our engineer will be with you shortly.
If you are stuck with an issue/error, please help us with following information.
- Which version of Appsmith are you on?
- Provide screenshots/screen recordings of the original error/code snippet.
- Add details about your use case and provide steps to reproduce the issue, if
possible.
- This is the self-hosted version
- Screenshot provided
- You can use the query below.
||{
"update": "newPage_history",
"updates": [
{
"q": {
"_id": {{query_select_newPage.data[0]._id}}
},
"u": { "$set": { "pages": "{{ query_select_newPage.data }}" } },
"upsert":true
}
]
}||
What is the data type of the _id?
ObjectId
Can you send a screenshot of the evaluated value of the query?
The evaluated value pops up if you click inside the query? Can you send a
screenshot of that one?
Uh.. I handled it the other way. I'll quit
Is the issue resolved now?
The issue hasn't been resolved, but I made it so that I didn't have to personally check it.