barseghyanartur / graphene-elastic

Graphene Elasticsearch/OpenSearch (DSL) integration
https://pypi.org/project/graphene-elastic/
71 stars 17 forks source link

How to use a non-default elastic connection #41

Closed datavistics closed 4 years ago

datavistics commented 4 years ago

What is the best way to pass in a non-default elastic connection? I have it under current_app or by key from connections.get_connection(connection_id)

barseghyanartur commented 4 years ago

@datavistics:

Check the examples. It's best defined on the elasticsearch-dsl documents side.