Hy and MongoEngine #2316
Answered
by
Kodiologist
RickBradford
asked this question in
Q&A
-
Is it possible to create a MongoDB/MongoEngine schema in Hy? The MongoEngine manual gives a typical Python schema as
which can be instantiated as
What would the equivalent be in Hy (if it is possible to do)? |
Beta Was this translation helpful? Give feedback.
Answered by
Kodiologist
Jul 11, 2022
Replies: 1 comment 1 reply
-
It should always be possible to do a straight translation of any Python code into Hy. In this case, it's:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RickBradford
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should always be possible to do a straight translation of any Python code into Hy. In this case, it's: