1.- Is it different utility create object in the cloud wich “mongo:createObject” that I create object in the client wich c"createObject"?. What it is better?
2.- I am to do one object.
coronium:createObject (“MyClass”, {nombre = “Manu”, activo = true},
function (e)
print (e.error) – Line 1
print (e.result.objectId) – Line 2
if not e.error then
print (“Ok”)
end
end)
But in Line 1 I have this ( find one failed: MyClass ), and in the Line 2 I have (attempt to index field ‘result’ (a nil value) Why?.
The object is created but I have this “error”
How I can know the Id of this object if I can not see the result?.
Thank you.