igorbenav / fastcrud

FastCRUD is a Python package for FastAPI, offering robust async CRUD operations and flexible endpoint creation utilities.
MIT License
530 stars 32 forks source link

Multiple nesting for joins. #75

Open JakNowy opened 1 month ago

JakNowy commented 1 month ago

Is your feature request related to a problem? Please describe. I'm wonderring if it's currently possible to have multiple layers of nesting in joined objects.

Describe the solution you'd like Ability to return multi-nested objects like

{
    'id': 1,
    'name': 'Jakub',
    'item': {
        'id': 1,
        'price': 20,
        'shop': {
            'id': 1,
            'name': 'Adidas'
        }
    }
}
igorbenav commented 1 month ago

Probably it's not possible without some more code, but it's indeed the next natural iteration of nested joins