redisgraph-go icon indicating copy to clipboard operation
redisgraph-go copied to clipboard

pass nested struct as parameter to redisgraph query in golang

Open ebrahimtorabi opened this issue 3 years ago • 1 comments

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

ebrahimtorabi avatar May 28 '22 10:05 ebrahimtorabi

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"
}

ebrahimtorabi avatar May 28 '22 12:05 ebrahimtorabi