padcom/grails-json-rest-api — pull request #11 by ryannorris (2012-04-08 17:01:02+00:00)
Title: Add support for eager marshalling of fields

I've added support for allowing a developer to eagerly marshal 1:n relationships via the static api closure

```
class Parent {

List children

static api = [
eagerFields: [ 'children' ]
]

}
```

this allows the flexibility to receive deeper object graphs, creating the capability to limit round trips from api clients.