Skip to content

Commit

Permalink
Merge pull request #6 from wilkerlucio/patch-1
Browse files Browse the repository at this point in the history
Update to flat description
  • Loading branch information
souenzzo authored Jun 29, 2021
2 parents de0e6de + 4e80c01 commit 251734c
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 251734c

Please sign in to comment.