I have a collection of cards and in my came I copy some of them to the players' script data in an array.
When trying to access the ids of those cards via "cardVariable._id.$oid" I get this error
Access to Java class "org.bson.types.ObjectId" is prohibited.
When viewing the script data in the NoSql viewer I can see the fields are there.
Do I have to rename these fields when saving them to the array to access them again? Not sure what I'm doing wrong.
Thanks for your time!
Can you describe more how you are adding the documents to the players scriptData? Would you mind showing us an example of these documents as they exist in the array?
If the cards have been loaded as JSON documents in Cloud Code then there should be no issues regarding access.
Let us know more and we'll get back to you
These documents go through a 3 step process.
Ok so I actually got the id by just doing it via ._id but now I've run into a new error
Write failed with error code 17280 and error message 'Btree::insert: key too large to index...
So I guess you can mark this as answer and I've opened a new thread here