The issue is that when a relationship is created between two models of Vapor, instead of having fluent define the correct key as modelname_id the database stores as modelname__id. This in turn makes it impossible to POST to that affected models.
here is an example of contact model that should have a user_id key but returns an error on POST.
The issue is that when a relationship is created between two models of Vapor, instead of having fluent define the correct key as modelname_id the database stores as modelname__id. This in turn makes it impossible to POST to that affected models. here is an example of contact model that should have a user_id key but returns an error on POST.