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

This extension overwrites the firestore objectID if one is manually set. #191

Open
ryankashi opened this issue Dec 19, 2023 · 2 comments
Open

Comments

@ryankashi
Copy link

Hi!

I'd like to create a custom objectID that is separate from the name of the document inside of my firestore database. However, if I set a document to firestore via setDoc(my_collection/my_document_name, {objectID: 'my_object_id'})

Algolia will instead overwrite my objectID and replace it with my_document_name. However, this is not desired behavior as I would like to manually save the objectID inside of my Firestore Database instead, while being able to control my document name as desired.

This is important for subcollections that may have similar document names across subcollections, but should be indexed separately based on their objectID.

Thanks!

@smomin
Copy link
Collaborator

smomin commented Feb 13, 2024

I have a RC version of the extension that allows admins to change the objectID in the configuration, please try it out. https://console.firebase.google.com/project/_/extensions/install?ref=algolia/firestore-algolia-search@1.2.1-rc.0

@smomin
Copy link
Collaborator

smomin commented Mar 4, 2024

any feedback?

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

No branches or pull requests

2 participants