Skip to content

Commit

Permalink
Merge pull request #890 from materialsproject/enhancement/remove_sort…
Browse files Browse the repository at this point in the history
…_key

Remove key from sorting by default
  • Loading branch information
munrojm committed Nov 17, 2023
2 parents 31950cb + 80fb355 commit a947a9c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/maggma/api/resource/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def generate_query_pipeline(query: dict, store: Store):
if sorting:
sort_dict = {"$sort": {}} # type: dict
sort_dict["$sort"].update(query["sort"])
sort_dict["$sort"].update({store.key: 1}) # Ensures sort by key is last in dict to fix determinacy

projection_dict = {"_id": 0} # Do not return _id by default

Expand Down

0 comments on commit a947a9c

Please sign in to comment.