Open GramParallelo opened 4 years ago
Hello,
First off, Thanks for the package!
In reducing query count I found that I didn't want eager-load a nested relationship. The following pseudo code hopefully explains the situation.
/// PostController responder()->success($posts, PostTransformer::class)->with('comments.user')->response(); /// PostTransformer relations = ['comments' => CommentsTransformer::class'] /// CommentsTransformer relations = ['user' => UserTransformer::class]; includeUser() { // ... do whatever, ex. grab user from cache instead of eager-load // }
Let me know, thanks!
Hello,
First off, Thanks for the package!
In reducing query count I found that I didn't want eager-load a nested relationship. The following pseudo code hopefully explains the situation.
Let me know, thanks!