We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Rhino, I'm trying to make a query there, but I'm having an Unmarshall error, it displays my Struct keys but without the values ...
I made something like this:
type User struct { ID string `json:"_id,omitempty"` Rev string `json:"_rev,omitempty"` Name string `json:"Name,omitempty"` Email string `json:"Email,omitempty"` Password string `json:"Password,omitempty"` Doctype string `json:"Doctype,omitempty"` Birthday string `json:"Birthday,omitempty"` CreatedAt string `json:"CreatedAt,omitempty"` UpdatedAt string `json:"UpdatedAt,omitempty"` } type ViewResult struct { Id string `json:"id"` Key User `json:"key"` } type ViewResponse struct { TotalRows int `json:"total_rows"` Offset int `json:"offset"` Rows []ViewResult `json:"rows,omitempty"` } result := m.ViewResponse{} //now try to query the view err := db.GetView("users", "users", &result, nil)
Am I missing something? Thank you
The text was updated successfully, but these errors were encountered:
Hi There! I did it,
type ViewResult struct { Id string `json:"id"` Key string `json:"key"` Value User `json:"value"` }
It was missing the Value Parameter. I will let this documented here. Thx!
Sorry, something went wrong.
Glad it was something simple!
No branches or pull requests
Hi Rhino, I'm trying to make a query there, but I'm having an Unmarshall error, it displays my Struct keys but without the values ...
I made something like this:
Am I missing something? Thank you
The text was updated successfully, but these errors were encountered: