-
Notifications
You must be signed in to change notification settings - Fork 107
with not being called in single record request #62
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
Comments
Hi. The Unless I'm missing something?! Happy to discuss as if there's a good reason it's needed for the |
@lindyhopchris In my case, I am including the nested relationships "items,items.bids,items.bids.bidder" I need to eager load the Bidder object which is N+1ed on a read. Unless I am looking at this wrong? |
ah, ok that makes sense - couldn't see that in your adapter's it makes sense for the change to be implemented. I'll take a look at what it involves - I suspect I'd need to include it in the next release because it'll be breaking (I'll have to modify the |
Hi @tylergets I've looked into this and it's going to involve some interface changes. As I'm probably going to have to make interface changes when I sort out all the relationships stuff (see #60) I'll include it in that change. I'm going to do a release of the 1.0 changes I've already made on #60, then will probably move on to the relationship stuff next. |
This change is now included on the The Eloquent adapter now converts JSON API include paths into Eloquent relationship paths for eager loading e.g. It also continues to support default paths for eager loading on the In addition, eager loading is now also supported when reading and updating specific resources. |
Hey guys, I have been using the package for a while and love all the updates. One thing I am having problems with is the with function in the Adapter class. I believe this is supposed to be called on index and read, however I am only able to load the include relationships on an index call. This is causing a lot of N+1 queries in my application.
Here is my Adapter
And my schema
The text was updated successfully, but these errors were encountered: