count
Purpose
Counts the number of instances in the database and returns the resultExamples
def noOfBooks = Book.count()
(Quick Reference)
countPurposeCounts the number of instances in the database and returns the resultExamplesdef noOfBooks = Book.count() |
Command LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServicesServlet APITag LibrariesTags |