Open qortex opened 4 years ago
@MicMicMon technically speaking, repositories have full support for CRUD w/o commands
declaration. You have access to all relations and they expose CRUD interface. How you encapsulate CRUD is important. That's why repositories exist - a place to encapsulate data access. This whole section should be improved or even rewritten to be honest.
For now we can just change this confusing sentence to:
Now we have a full CUD setup, we can create, update and delete user data:
Ah ok. Indeed, that's not what I understood from the writeup :)
If you're interested, I can give a shot at a doc PR when I get my head around the various concepts. I guess it could be interesting coming from someone like me who has no prior background on ROM.
@MicMicMon sure! contributions like that are always welcome
On page: https://rom-rb.org/learn/repository/5.2/quick-start/
As far as I understand, the snippet gives
CUD
capabilities, but not aRead
capability, which would need to add a selector that routes to aRelation
selector method.