Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Populate a parent-child relationship after initial query #784

@AndrewBoryk

Description

@AndrewBoryk

Please summarize your feature request

Being able to populate a parent-child relationship on a record that was already previously queried

Describe the functionality you're seeking in more detail

I want to avoid populating all the fields on a record every single time that I am fetching it.
In addition, sometimes I'd like to be able to just use the User that I get from require during authentication.

The issue is, that if I have a parent-child (or sibling) relationship to that record, it isn't loaded up when I use that require.

So the alternative I have is getting the id from that User, and then querying for that user again to get it populated.

Is there a functionality for this already? If not, it would be nice to populate as needed on a record via query after it's initiatial query

Have you considered any alternatives?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions