Skip to content

Commit

Permalink
Update to flat description
Browse files Browse the repository at this point in the history
Hello, a suggestion on the keep it flat section.
  • Loading branch information
wilkerlucio authored Jun 29, 2021
1 parent de0e6de commit 4e80c01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ If you have `1..1` relationship, it should be accessible without a `join`
[:app.current-session/token
:app.account/display-name]

;; good: it's OK to have a explicit relationship attribute between them
;; good: it's OK to have a explicit relationship attribute between them, but keeping it flat
;; adds more leverage, because in flat paths you only need to know the end-point, but nested
;; data requires the knowing of each item in the path.
[:app.current-session/token
:app.account/display-name
{:app.current-session/account [:app.account/display-name]}]
```

Expand Down

0 comments on commit 4e80c01

Please sign in to comment.