barseghyanartur / graphene-elastic

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

Add documentation on query string and simple query string backends #49

Closed barseghyanartur closed 3 years ago

barseghyanartur commented 3 years ago

For simple query string:

    query PostsQuery {
      allPostDocuments(
        simpleQueryString:"'trouble candidate' +Python"
      ) {
        edges {
          node {
            id
            title
            category
            content
            createdAt
            comments
          }
        }
      }
    }

For query string:

    query PostsQuery {
      allPostDocuments(
        queryString:"(trouble candidate) AND Python"
      ) {
        edges {
          node {
            id
            title
            category
            content
            createdAt
            comments
          }
        }
      }
    }