Skip to content

Commit

Permalink
the docstring for find_one was slightly misleading
Browse files Browse the repository at this point in the history
  • Loading branch information
hemidactylus committed Nov 23, 2023
1 parent 1740bf0 commit b0591a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion astrapy/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,11 @@ def find_one(
sort (dict, optional): Specifies the order in which to return the document.
options (dict, optional): Additional options for the query.
Returns:
dict: The found document or None if no matching document is found.
dict: the response, either
{"data": {"document": <DOCUMENT> }}
or
{"data": {"document": None}}
depending on whether a matching document is found or not.
"""
json_query = make_payload(
top_level="findOne",
Expand Down

0 comments on commit b0591a7

Please sign in to comment.