Skip to content

0.6.7

Compare
Choose a tag to compare
@Brendonovich Brendonovich released this 29 Mar 03:46
· 121 commits to main since this release

Big release today for MongoDB users, with support for composite fields and raw mongo queries! partial! is also here, along with a bunch of bug fixes.

Composite Type Support

It is now possible to perform CRUD operations with MongoDB's embedded documents, with type- and field-level modules now generated with similar types as regular models.

Docs

MongoDB Raw Queries

_run_command_raw, find_raw, and aggregate_raw are all now available when using MongoDB.

Docs

Partial Types

The partial_unchecked! macro is now available for all models, providing an easy way to convert input objects to update_unchecked parameters.

Docs

create_unchecked, update_unchecked, UncheckedSetParam

For cases where yo want to interact with foreign keys, create_unchecked and update_unchecked allow you to do so without risking a runtime error by including a relation operation, improving type-safety. In a future update foreign key operations will be removed from SetParam enums.

Other

.env file loading

dotenv is now being used instead of std::env, so the client can read from .env files at runtime.

Unsupported field handling

Models that have Unsupported fields won't throw errors, instead it will not be possible to create records of them if the field is required. The fields will also not be returned from queries. Thanks to @laptou for helping with this!

New specta feature

PCR can now be used with Specta independently of rspc


Next up on the agenda is a bunch of breaking changes like #300, #83, and big changes like #263 and #44, but those will come later.