Skip to content

Instantly share code, notes, and snippets.

@soutaro
Last active January 16, 2019 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soutaro/21c01880c2c489188441b04e06c1d20b to your computer and use it in GitHub Desktop.
Save soutaro/21c01880c2c489188441b04e06c1d20b to your computer and use it in GitHub Desktop.
Introducing Phinder, posts
- id: com.example.app.posts
pattern: "_->hasMany(Post::class)"
message: |
Use `User::posts()` to retrieve a user's posts and associated records
`posts()` includes associated records, so it runs faster.
justification:
- When you only need only a single kind of records
- When you look up records not associated with a user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment