ash/documentation/topics/store-context-in-process.md
Zach Daniel 5c81d2b4a7 fix: properly do pagination
docs: fix some docs, add some guides
2022-09-11 22:19:37 -04:00

11 lines
582 B
Markdown

# Store Context In Process
There are various things that can be stored in the process dictionary as opposed to passing them to every function. This is a stylistic choice, and in many cases could lead to *less* clear code, so use with caution. See the functions in the `Ash` module for more.
The following things can be stored in the process:
- Query/changeset context, will be merged with the context of any query/changeset before it is run.
- The current actor (i.e current_user)
- Wether or not to run authorization, i.e `authorize?`
- The current tracer
- The current tenant