Insert Error

26 views
Skip to first unread message

Pari Deshpande

unread,
Nov 6, 2019, 12:14:41 AM11/6/19
to MongoDB Stitch Users
Please help, I have my project deadline tomorrow and I need to make this work!
I have been trying to insert a single document using, insertOne() fuction.
This is my apply when code which we write while defining the role, for role 1.
{
  "_id": "%%user.id",
  "%%true": {
    "%function": {
      "name": "stitchInsert",
      "arguments": [
        "%%root.name",
        "%%root.age"
      ]
    }
  },
  "read": true,
  "write": true
}

It says internal server error-
Error:
error executing match expression: invalid document: must either be a boolean expression or a literal document
Stack Trace:
StitchError: failed to check role role 1

Screenshot (745).png


Reply all
Reply to author
Forward
0 new messages