danielpquinn/keystone-rest — pull request #2 by creynders (2014-06-19 11:01:19+00:00)
Title: Added options for relationships

I added the possibility to declare omitted fields for relationships, e.g.:

```js
keystoneRest.exposeRoutes( keystone.list( 'Foo' ), {
get : {
omit : ['password'],
relationships : {
bar : {
omit : ['secretField']
}
}
}
} );
```

It's still backwards compatible though, i.e. you can still do this:
```js
keystoneRest.exposeRoutes( keystone.list( 'Foo' ), {
get : {
omit : ['password'],
relationships : ['bar']
}
} );
```