art-institute-of-chicago / data-aggregator

An API of public data collected from several different systems at the Art Institute of Chicago
GNU Affero General Public License v3.0
65 stars 6 forks source link

Adds a `match` method for eager loading #1

Open Ben52 opened 6 years ago

Ben52 commented 6 years ago

I've found this class useful in my own projects. By adding the match method you will now get only a single result, not a collection with a single result when eager or lazy loading your relationship when you call expectOne.

Ben52 commented 6 years ago

This is not quite done yet. I'll reopen when its fixed.

IllyaMoskvin commented 6 years ago

Thanks for the contribution! (First PR for AIC's data hub 🎉)

We are currently all-hands-on-deck on another project, but we should have a chance to revisit the more architectural aspects of this one in November. We'll look into merging this then!