Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Jul 22, 2020
1 parent 8e9042c commit e0e30fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 438 deletions.
6 changes: 6 additions & 0 deletions examples/schema/meta/post.py
Expand Up @@ -115,6 +115,12 @@ class AbstractPostDocumentMeta:
# value (in this case `num_views`) is the field name in the
# Elasticsearch document (`PostDocument`).
'num_views': 'num_views',

# Add ordering by score. The dictionary key (in this case `score`)
# is the name of the corresponding GraphQL query argument (how you
# want it to be). The dictionary value (in this case `_score`) is
# the reserved Elasticsearch name.
'score': '_score',
}

# For `DefaultOrderingFilterBackend` backend
Expand Down

0 comments on commit e0e30fb

Please sign in to comment.