Tanner
Tanner
What kind of safety? Fluent expects that the `model.id` be the same id as what is in the database. Storing them as separate values might cause issues elsewhere.
haha nice. can you add `Package.resolved` to gitignore?
To use Mongo, add this package: https://github.com/vapor/mongo-provider Docs: https://vapor.github.io/documentation/fluent/driver.html
@islandjoe could you make a PR to the README that adds this note?
Could you paste the model code? What you have here should be working.
I think the issue is `try node.extract("id")`. If the id field is `_id`, you should use `_id` there.
Oh I see. Then do `User.query().filter("id", 42).first()`
This looks good to me, but we'd need some way to offer backward compatibility if we don't want to bump this up a major version. Perhaps we could provide deprecated...