How do I set a Collection Column of type Pointer in Javascript
Posted: Fri Oct 18, 2013 11:43 am
I have 2 DB Collections
1) Users: which is predefined
2) OtherData: with Fields 'UserID', 'Field1', 'Field2'
The 'UserID' is of type (Pointer)
I've created a service dsX_create_service.
The Statement below does not work. However if I remove the "UserID":"...." line a record gets created with Field 1 and 2 with correct values.
Code: Select all
dsX_create_service.execute(
{data:
{
"UserID":"5231926be4b038f7ef2c0afc", // This is the Pointer field
"Field1":"12",
"Field2":"A String",
}
});