Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] When Bind or Render needs a database object... #19

Open
ernsheong opened this issue May 21, 2019 · 1 comment
Open

[Question] When Bind or Render needs a database object... #19

ernsheong opened this issue May 21, 2019 · 1 comment

Comments

@ernsheong
Copy link

Sometimes we need the DB object to do more complex work in Bind or Render... what is the suggested way to do this (putting db in context feels wrong), or is it a smell?

@mvrhov
Copy link

mvrhov commented Nov 30, 2019

DO not use db object to bind or render directly.
Most of the times in response you need to skip some data or add some new data. When binding you also usually bind a lot less that's in your db object, so it's the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants