Error when trying to store an array in ScriptDb

前端 未结 2 482
你的背包
你的背包 2021-01-16 01:51

I have an array of objects that is created by my script and I am trying to copy that array into a new array and then store it in scriptDb using the following function:

2条回答
  •  逝去的感伤
    2021-01-16 02:28

    ScriptDb only stores map objects. You could however store a map that contains an array!

    You can use arrays to save several objects in a single call using db.saveBatch.

提交回复
热议问题