Skip to content
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

Composite Indices: MongoDB Migration Connector #12408

Closed
Tracked by #10101 ...
pimeys opened this issue Mar 17, 2022 · 0 comments · Fixed by prisma/prisma-engines#2819
Closed
Tracked by #10101 ...

Composite Indices: MongoDB Migration Connector #12408

pimeys opened this issue Mar 17, 2022 · 0 comments · Fixed by prisma/prisma-engines#2819
Assignees
Labels
domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. tech/engines/migration engine Issue in the Migration Engine topic: composite-types topic: embedded documents topic: indexes topic: mongodb
Milestone

Comments

@pimeys
Copy link
Contributor

pimeys commented Mar 17, 2022

A model index definition can point to fields in composite types. We should be able to push them correctly in the MongoDB migration connector.

If having a period in the index field definition, such as:

@@index([foo.bar])

Using db push should use "foo.bar" as the field name when writing to the database.

Dependencies

The PSL issue must be merged before starting to work with this one.

Full proposal

Private document in Notion

@pimeys pimeys added kind/feature A request for a new feature. tech/engines/migration engine Issue in the Migration Engine domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. topic: mongodb labels Mar 17, 2022
@pimeys pimeys added this to the 3.12.0 milestone Mar 17, 2022
@janpio janpio added kind/subtask and removed kind/feature A request for a new feature. labels Mar 21, 2022
@pimeys pimeys self-assigned this Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain/schema Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc. tech/engines/migration engine Issue in the Migration Engine topic: composite-types topic: embedded documents topic: indexes topic: mongodb
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants