surrealdb / surrealdb.go

SurrealDB SDK for Golang
https://surrealdb.com
Apache License 2.0
232 stars 60 forks source link

fix: update change and modify method #98

Closed youkoulayley closed 11 months ago

youkoulayley commented 1 year ago

Motivation

With the release of v1.0.0-beta.10, it looks like some methods I used changed and I got error messages like this:

sending request failed for method 'change': Method not found

After some search, I found a change on this two methods: change -> merge modify -> patch

So here's a PR to update those two methods, if there is more changes to do (like on other method I didn't check), I will be happy to update the PR. I also took the liberty to update the switch method, I found it more clear like this, but I can rollback if you want to.

0xF7A4C6 commented 11 months ago

bump

ElecTwix commented 11 months ago

bump

SurrealDB team will look into it after the SurrealDB World.

timpratim commented 11 months ago

Hi @youkoulayley This PR looks good. Thank you for your contribution and patience.

0xF7A4C6 commented 11 months ago

YESSSSS !!!!