Do you have any example of how to create One to Many relation using Vapor 2? There are some examples of how to do this, but they use the old version of Vapor.
Thank you for all suggestions.
Do you have any example of how to create One to Many relation using Vapor 2? There are some examples of how to do this, but they use the old version of Vapor.
Thank you for all suggestions.
I have found a solution. Here is simple example of an owner having many cars, maybe will be helpful for someone.
Owner:
Car: