vapor / fluent

Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
https://docs.vapor.codes/4.0/fluent/overview/
MIT License
1.3k stars 171 forks source link

Where is .alsoDecode ? #759

Closed Samsv77 closed 1 year ago

Samsv77 commented 1 year ago

Is your feature request related to a problem? Please describe.

Older releases of Fluent had .alsoDecode() to decode an object from a Left/Right/Inner join, this is particular useful when we have 1 to 1 mapping between the records. .alsoDecode() is no longer available in Fluent 4, what is the alternative to load a child without running a separate query ?

Example of alsoDecode: https://github.com/vapor/fluent/issues/547

0xTim commented 1 year ago

@Samsv77 See the docs for how to get joined models from a query