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
Hello, having following query applications.WhereEqual("reporting", false).Select("applications").Only("id", "name") and need to map it to struct.
applications.WhereEqual("reporting", false).Select("applications").Only("id", "name")
Example of return value is [map[id:1.94664978e+08] map[id:1.12640692e+08] map[id:1.94411185e+08]]
[map[id:1.94664978e+08] map[id:1.12640692e+08] map[id:1.94411185e+08]]
Could You suggest how? Having no idea :(
The text was updated successfully, but these errors were encountered:
You can iterate over the []interface{} and populate your struct (this is good but you need to assert the value yourself)
[]interface{}
Or you can encode to json and write the byte to the struct by decoding json
encode to json
decoding json
Sorry, something went wrong.
No branches or pull requests
Hello, having following query
applications.WhereEqual("reporting", false).Select("applications").Only("id", "name")
and need to map it to struct.
Example of return value is
[map[id:1.94664978e+08] map[id:1.12640692e+08] map[id:1.94411185e+08]]
Could You suggest how? Having no idea :(
The text was updated successfully, but these errors were encountered: