Skip to content
New issue

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

pass nested struct as parameter to redisgraph query in golang #69

Open
ebrahimtorabi opened this issue May 28, 2022 · 1 comment
Open

Comments

@ebrahimtorabi
Copy link

hello.
how to pass nested struct as parameter to redisgraph query?

@ebrahimtorabi ebrahimtorabi changed the title pass nested struct as parameter to redisgraph query pass nested struct as parameter to redisgraph query in golang May 28, 2022
@ebrahimtorabi
Copy link
Author

ebrahimtorabi commented May 28, 2022

i want to pass struct that contained list of other struct to query string and then 'UNWIND' this list ,then create my desired node by it

type TranslatedValue struct {
  Value string json:"value"
  Language string json:"language"
}
type Record struct {
  Values []TranslatedValue json:"values"
  Id string json:"id"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant