RedisGraph / redisgraph-go

A Golang client for redisgraph
https://redisgraph.io
BSD 3-Clause "New" or "Revised" License
132 stars 38 forks source link

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

Open ebrahimtorabi opened 2 years ago

ebrahimtorabi commented 2 years ago

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

ebrahimtorabi commented 2 years ago

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