github nuwave/lighthouse v2.0.2
Include default eager loads

latest releases: v6.36.0, v6.35.0, v6.34.1...
6 years ago

If you're using the hasMany directive and you're connected model has default eager loading Lighthouse will now pull in those relations automatically.

For example, if you have a model:

class Post extends Model
{
    protected $with = ['comments'];
}

a schema like this:

type Post {
  author: [Comment!]! @hasMany
}

Lighthouse will automatically eager load the author relationship whenever a Post type is queried.

Don't miss a new lighthouse release

NewReleases is sending notifications on new releases.