goadesign / gorma

Storage generation plugin for Goa
http://goa.design
MIT License
140 stars 35 forks source link

Update README to reflect that PK Field is required for Get to work #128

Closed trevrosen closed 8 years ago

trevrosen commented 8 years ago

The existing README marks the Field definition for a primary key as redundant.

This is misleading due to the fact that the CRUD Get method won't generate with an integer argument unless you have this Field declaration for the primary key. Same for the model helper method OneFoo.

There has been some chatter on the Slack channel about altering the default behavior. But until then, hopefully altering this documentation example will save some people some pain.