Rank 1: Thread
Hello Appwrite team, currently I am having trouble updating collection documents on GOlang . Can you help me with that?
the README on GitHub is stale while the Quick-Start guide was written for the latest SDK.
The README still shows the old v0.6.x API (for Appwrite ≤ 1.3) – e.g. appwrite.NewDatabase(client) and databases.UpdateDocument(collectionID, …)
Beginning with sdk-for-go v0.7.0 (released 18 May 2025, compatible with Appwrite 1.7 +), the SDK was regenerated:
Service names became plural (NewDatabases, NewUsers, …).
All database methods now start with the database ID: CreateDocument(databaseID, collectionID, …) etc.
The fluent client builder moved to functional options:
appwrite.NewClient(appwrite.WithEndpoint(…), appwrite.WithProject(…), appwrite.WithKey(…))
The Quick-Start page reflects this new API, but the repository README hasn’t been updated yet, so anyone who copies the README code against v0.7.0+ (the default you get with go get github.com/appwrite/sdk-for-go) will see compiler errors.