you can use @kokolegorille’s example, and you can also use the recommendation from the Bolt.Sips Response docs and examples, pasting some samples below, for brevity:
__ One of the main reasons the Response has a mix content, atoms and strings, is because we cannot control the response from the server, converting everything to atoms would obviously not be safe.
I have to display “properties” in .eex file, but so far I have not been able to access it even in iex shell.
It seems to be very complex structure of maps and lists.
i have tried using Enum functions but could not get desired output
ex: results[“n”][:properties]
for get_in, the error is “n” is not an atom, I have tried String.to_atom(“n”) but the results are not desirable.
need some help about it.
conn = Bolt.Sips.conn()
%Bolt.Sips.Response{results: results}=Bolt.Sips.query!(conn,“match (n) return n limit 1”)
get_in(results,[“n”,:properties])
** (ArgumentError) the Access calls for keywords expect the key to be an atom, got: “n”
(elixir 1.10.4) lib/access.ex:311: Access.get/3
(elixir 1.10.4) lib/kernel.ex:2308: Kernel.get_in/2
results is a list… If I had to collect data from it, I would first start with Enum.map. Not tested, but I would do something similar if I had to collect n, email and name.