Server Code and Pointers Error
I keep getting an error when creating to create a new object in server code. AllI am doing is creating a object in a database that holds two pointers. But I get this each time:
preError: '_id' is missing for pointer column 'groupType ( @ 66 : 18 ) - throw e;/pre
This is the code I am using:
precode 
 var group_id = Collection.createObject(dbid, "groups", { 
   "groupName": groupName, 
   "contactEmail" : group_contactEmail, 
   "contactNumber" : group_contactNumber, 
   "contactName" : group_contactName, 
   "qLimit" : group_qLimit, 
   "mLimit" : group_mLimit, 
   "qRate" : group_qRate, 
   "mRate" : group_mRate, 
   "groupCode" : groupCode, 
   "active" : "0", 
   "groupType" : {'collName' : 'group_types','id' : group_type_id } 
 }, token).id; 
 /code/pre
The code is no different what I use in the app, but is there another way to do it in Server Code ?
Thanks