vapor-community / mongo-driver

MongoDB driver for Fluent
28 stars 26 forks source link

Issue with vapor relationships and fluent #38

Open givinalis opened 7 years ago

givinalis commented 7 years ago

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. screen shot 2017-09-22 at 13 15 17 here is an example of contact model that should have a user_id key but returns an error on POST.