Surreal-Net / Surreal.Net

Database driver for SurrealDB available for REST and RPC sessions.
Apache License 2.0
57 stars 7 forks source link

Feature: Strong typed `Modify` #13

Closed ProphetLamb closed 2 years ago

ProphetLamb commented 2 years ago

Strong typed Modify operations. I defined the structure required by modify in my protobuffer fork of surreal.

https://github.com/ProphetLamb/surrealdb/blob/upstream/main/proto/patch.proto

The request body is an array of Patches as defined above.

A weakly typed example usage in C# can be seen here:

https://github.com/ProphetLamb/Surreal.Net/blob/4a9a1973404356c21502e65e427b5f630c6b55dd/tests/Core.Tests/DatabaseTests.cs#L107-L117