lrstanley / entrest

Extension that generates a compliant OpenAPI spec and server implementation
https://lrstanley.github.io/entrest/
MIT License
11 stars 1 forks source link

feat: remove unnecessary db call to fetch edge #7

Closed lrstanley closed 3 months ago

lrstanley commented 4 months ago

Currently (re: entx), we fetch the root entity, then fetch the specific edge of that entity. Ideally, we should be able to query the edge directly based of the ID of the root, but the ent logic for this is a bit more complex.

I.e. entity -> query edge vs query edge by from's ID (so don't need to query extra data).