Stricter types from include
- Dominant language
- TypeScript
- Stars
- 449
- Forks
- 21
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 2
Description
### Clear and concise description of the problem
Currently query result type include all relations for the item's model.
### Suggested solution
Return stricter type from queries with `include` that would not allow accessing relations that are not guaranteed because not in the `include` parameter.
### Alternative
_No response_
### Additional context
_No response_
### Validations
- [x] Follow our [Code of Conduct](https://github.com/Akryum/rstore/blob/main/CODE_OF_CONDUCT.md)
- [x] Read the [Contributing Guidelines](https://github.com/Akryum/rstore/blob/main/CONTRIBUTING.md).
- [x] Read the [docs](https://rstore.starpad.dev/guide/).
- [x] Check that there isn't [already an issue](https://github.com/Akryum/rstore/issues) that requests the same feature to avoid creating a duplicate.
Contributor guide
Assessment
This issue has not been assessed yet.