Find all the documents with Optional[Link[...]] = None #328
-
Hi ❤️! I have the class Department(Document):
name: str
parent: Optional[Link['Department']] = None And I want to get all the documents with departments = await Department.find(Department.parent == None, fetch_links=True).to_list() And I get an error:
Do I miss something? |
Beta Was this translation helpful? Give feedback.
Answered by
roman-right
Sep 28, 2022
Replies: 1 comment 3 replies
-
Hi. This looks like a bug. I'll check it out and let you know |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
chabErch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. This looks like a bug. I'll check it out and let you know