Skip to content

INTPYTHON-483 Add EmbeddedModelArrayField #292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

timgraham
Copy link
Collaborator

@timgraham timgraham commented Apr 21, 2025

The first commit here is from #278. I didn't merge that in case of this work affects it.

TODO:

  • Querying support
  • Documentation
  • Migrations support?

fixes #219

@timgraham timgraham changed the title Add EmbeddedModelArrayField INTPYTHON-483 Add EmbeddedModelArrayField May 5, 2025
@WaVEV WaVEV force-pushed the arrayfield+emf branch from 4f91ba9 to f109cf5 Compare May 5, 2025 02:16
Comment on lines +251 to +253
for key in key_transforms:
mql = {"$getField": {"input": mql, "field": key}}
return mql
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional to modify the non-array embedded field?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, It was. EmbeddedModelArrayField has an embedded field and some operation could be adapted although I think this one will be reverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add EmbeddedModelField support to ArrayField
2 participants