Using the same Xandra connection anywhere?

I’m fairly new to Elixir, so please forgive me if my question is super stupid :sweat_smile:

I’m trying to run a query and return data when a user sends a request to my api, but Xandra requires a conn variable to be passed:

Xandra.execute(conn, query);

And I can’t really pass it in a request because conn is defined in the start function when the Raxx server is started, and the request handler is in another file :grimacing:

Have you had this problem before? How did you solve it? :flushed:

Thanks in advance everyone :stuck_out_tongue: