Oyelowo / oyestack

Foundation for highly scalable distributed web application with `Rustlang` for apps, `Typescript` and Kubernetes for Infra
https://codebreather.com
Apache License 2.0
0 stars 0 forks source link

Surreal-orm: Implement set_model, to allow fields and params in creation/update/relate. model #522

Closed Oyelowo closed 1 year ago

Oyelowo commented 1 year ago

Surreal-orm: Implement set_model, to allow fields and params in creation/update/relate. model

This is especially useful when working with transaction and you might want to pass param or field around. The standard struct only allows the field type values but this will use .set method under the hood but set method does not enforce exhaustive check