Last updated 6 years ago
Find all entities according to criteria structure. Ex: findAllWhere(entityName="Category", {category="Training"}), findAllWhere(entityName="Users", {age=40,retired=true});
This function returns array
posts = ormService.findAllWhere(entityName="Post", criteria={author="Luis Majano"}); users = ormService.findAllWhere(entityName="User", criteria={isActive=true}); artists = ormService.findAllWhere(entityName="Artist", criteria={isActive=true, artist="Monet"});
Key
Type
Required
Default
Description
entityName
string
Yes
---
criteria
struct
A structure of criteria to filter on
sortOrder
false
The sort ordering