The provided example used a single dimensional array as an argument for the saveObjects() method.
As saveObjects saves an array of objects, it generated an error.
I updated the example to use a single saveObject() method, which I find easier to understand as a beginner than a two-dimensional array argument for saveObjects()
Describe your change
The provided example used a single dimensional array as an argument for the
saveObjects()
method. As saveObjects saves an array of objects, it generated an error. I updated the example to use a singlesaveObject()
method, which I find easier to understand as a beginner than a two-dimensional array argument forsaveObjects()