Last active
October 7, 2015 09:27
-
-
Save dbaba/3142802 to your computer and use it in GitHub Desktop.
ModelMapper.remove() from MOAT js API Document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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