P
Prisma•4w ago
Mike

WILDCARD, New index type for MongoDB

I want to thank the Prisma team for the quick response to my previous request, especially @Nurul. My current question is: how do I add a new type of indexes for MongoDB, what is the flow for implementing this feature, where should I start, and what tests should I add? My question: https://github.com/prisma/prisma/discussions/26165#discussioncomment-12220940 Docs: https://www.mongodb.com/docs/manual/core/indexes/index-types/index-wildcard/
GitHub
How to extend prisma? new Index type (wildcard) for MongoDB? · pris...
Question How to do it? Which files will be changed? Add support for @@wildcard to the schema definition. Add generated commands for prisma db push. Create a patch for local usage (yes, I know how t...
4 Replies
Prisma AI Help
Prisma AI Help•4w ago
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into #ask-ai for a quick spin!
Nurul
Nurul•4w ago
Hi Mike 👋 Thank you for raising the PR for adding support of compression options 🙌 I need to check with the team to see if we have any resources we can share to add support for the index type. Let me get back to you on this
Nurul
Nurul•3w ago
Feedback from ORM team:
I would suggest they start with an RFC in this case and not code. It’s not obvious how the support for this should look like in PSL, and I don’t want them to discard their work if we don’t agree with their design.
So, the next step would be to create a RFC like this: https://github.com/prisma/prisma/issues/25889 https://github.com/prisma/prisma/issues/25893 Once we agree on a design and a way forward we can start implementation
GitHub
RFC: prisma migrate commit · Issue #25889 · prisma/prisma
RFC: prisma migrate commit Problem statement When working on a new feature in your application that involves changing the database schema you often need need multiple iterations until you get it ri...
GitHub
RFCs and Proposals · Issue #25893 · prisma/prisma
This is the catalog of public RFCs, proposals and other writeups. It includes both the planned work where we want to provide transparency into the design process and make sure the community has an ...
Mike
MikeOP•2w ago
GitHub
RFC: Support for Wildcard Indexes in MongoDB · Issue #26717 · prism...
RFC: Support for Wildcard Indexes in MongoDB Summary This RFC proposes adding support for MongoDB wildcard indexes to Prisma by introducing a new schema attribute: @@wildcard. This will enable user...

Did you find this page helpful?