- 
                Notifications
    
You must be signed in to change notification settings  - Fork 28
 
Open
Labels
bugSomething isn't workingSomething isn't working
Description
👟 Reproduction steps
Run:
package main
import (
	"fmt"
	"github.com/appwrite/sdk-for-go/appwrite"
)
func main() {
	client := appwrite.NewClient(
		appwrite.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1"),
		appwrite.WithProject("<PROJECT_ID>"),
		appwrite.WithKey("<API_KEY>"),
	)
	users := appwrite.NewUsers(client)
	user, err := users.Get("<USER_ID>")
	if err != nil {
		panic(err)
	}
	println("User ID:", user.Id)
	println("User Email:", user.Email)
	fmt.Printf("User Prefs: %#v\n", user.Prefs)
	prefs := map[string]interface{}{}
	user.Prefs.Decode(&prefs)
	fmt.Printf("User Prefs: %#v\n", prefs)
}👍 Expected behavior
The prefs have data
👎 Actual Behavior
User ID: 6797eb6600209d9c9f72
User Email: [email protected]
User Prefs: models.Preferences{data:[]uint8(nil)}
User Prefs: map[string]interface {}{}
🎲 Appwrite version
Version 0.10.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
 
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
 
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working