Closed Longboyy closed 3 months ago
This PR improves upon the existing $db typings, providing type safety throughout the process:
$db
type MySchema = { _id: "my_schema", someData: number[] } $db.us<MySchema>({ _id: "my_schema" }, { $setOnInsert: { someData: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] } });
Thank you for beginning work on this. I have taken what you've done so far and and kept adding to and tweaking it over at the Longboyy/db-types branch.
This PR improves upon the existing
$db
typings, providing type safety throughout the process: