Как я могу прочитать только lastChild вместе с parentObject
Parent {
hasMany[children: Child]
}
вот мой код
Parent.withCriteria() {
eq("active", true)
children {
order("dateCreated", "desc")
maxResults(1)
}
}
Но не работает. Как я могу прочитать Parent с последним обновленным дочерним элементом