1
0
Fork 0
arangodb/Documentation/DocuBlocks/JSF_foxx_repository_byId.md

17 lines
262 B
Markdown

`FoxxRepository#byId(id)`
Returns the model for the given ID ("collection/key") or "key".
@EXAMPLES
```javascript
var byIdModel = repository.byId('test/12411');
byIdModel.get('name');
var byKeyModel = repository.byId('12412');
byKeyModel.get('name');
```