Ritu Singh
Solution:
You start it by creating a scope inside your Notification. The following code will help you understand.
After this write the following code:
Or if you have other relation to eager:
So it's up to you how to organize an modify the code to suit your needs
Update:
The $with always depends on model columns. Therefore, if you are not selecting for exmaple subscription_id and photo_file_id, automatic relation loading will not work.
Would you give it a try
Suggested blogs:
>Creating API in Python using Flask
>CRUD Operations In ASP.NET Core Using Entity Framework Core Code First with Angularjs