barseghyanartur / graphene-elastic

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

[Question]: Where does one configure the elasticsearch connection? #25

Closed seandavi closed 5 years ago

seandavi commented 5 years ago

First, thanks for putting this library together. I'm working to get things up and running so that I might be able to contribute a bit.

I have an elasticsearch server that has a hostname and requires basic auth. Where can I configure this with graphene-elastic? I'm used to configuring the es client and then using it with basic elasticsearch_dsl Search.

I apologize if I have missed this in the docs and a quick scan of the code didn't point me to the right place.

barseghyanartur commented 5 years ago

@seandavi:

Look, you work with documents. Connection shall be defined there. See how it's done in the example project.

seandavi commented 5 years ago

Thanks, @barseghyanartur. That is the line I had missed.