Last active
October 7, 2015 06:47
-
-
Save dbaba/3122106 to your computer and use it in GitHub Desktop.
ModelMapper.findByUid() 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 of an object to be fetched. | |
var uid = 'an-identifier-for-object'; | |
var myArrayTypeMapper = | |
session.newModelMapperStub('MyArrayType'); | |
myArrayTypeMapper.findByUid(uid, { | |
success : function(result) { | |
if (result.array) { | |
var entity = result.array[0]; | |
// do something | |
.... | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment