Skip to content

Instantly share code, notes, and snippets.

@dbaba
Last active October 7, 2015 09:27
Show Gist options
  • Save dbaba/3142802 to your computer and use it in GitHub Desktop.
Save dbaba/3142802 to your computer and use it in GitHub Desktop.
ModelMapper.remove() from MOAT js API Document
// Gets a UID
var uid = ...;
// Prepares an update operation.
var myArrayTypeMapper =
session.newModelMapperStub('MyArrayType');
// Enqueues the remove operation
myArrayTypeMapper.remove(uid, {
error : function(type, code) {
if (type == 'NOT_FOUND') {
...
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment