surrealdb / surrealdb.go

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

Change function does not exist #134

Open MaxThom opened 4 months ago

MaxThom commented 4 months ago

Describe the bug

When using the Change method, I get this error message from surrealdb: sending request failed for method 'change': Method not found I am using surreal version 1.3.1

I see the latest version of the code changed this method to Merge(), but it doesnt seem to be in the latest release. So I assume, my surrealdb version is to new for the last release?

Moreover, will the sdk transform any nil value to NONE so they get removed in surreal?

Thank you!

Steps to reproduce

Start the surrealdb v1.3.1 Call the Change() method from the sdk

Expected behaviour

To update my document

SurrealDB version

1.3.1 amd64

Contact Details

No response

Is there an existing issue for this?

Code of Conduct

ElecTwix commented 4 months ago

modify method has been changed to merge on upstream use lastest main commit. check out for more context: https://github.com/surrealdb/surrealdb.go/pull/98

MaxThom commented 4 months ago

Thanks!

MaxThom commented 3 weeks ago

I have notice the last release is more than a year old ? should there be a new release?

Moreover, I have now updated to follow main, and I can't access marshal and unmarshal function. I have to import the package "github.com/surrealdb/surrealdb.go/pkg/marshal"

Also, the Connect function requires a conn.Connection which is not specified in any of the doc. What should we provice?

I am running this version using got get ...@main github.com/surrealdb/surrealdb.go v0.2.2-0.20240612173039-8f4a6983912f I have updated my surreal to be 1.5.4.

Thanks