ulobby / NeoEloquent

An extension of Laravel Elqouent that supports Neo4j, a native graph database
MIT License
41 stars 17 forks source link

$with attribute lazy loading #38

Open idevin opened 3 years ago

idevin commented 3 years ago

I've tried nested $with option, but it seems does not work.

$with = ['users' => function ($query) use ($user) { $query->whereUserId($user->id)->with(['userValues' => function($query){ $query->with(['fields']); }]); }];