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

ds_key index is not created #19

Open
lyollix opened this issue Jun 29, 2019 · 3 comments
Open

ds_key index is not created #19

lyollix opened this issue Jun 29, 2019 · 3 comments

Comments

@lyollix
Copy link
Contributor

lyollix commented Jun 29, 2019

This gives an error and the index is not created:
this._collections[ collectionName ].createIndexes({ ds_key: 1 });

Fix it:
this._collections[ collectionName ].createIndex({ ds_key: 1 });

@yasserf
Copy link
Contributor

yasserf commented Jun 29, 2019 via email

@yasserf
Copy link
Contributor

yasserf commented Jul 2, 2019

Thanks for raising the PR, just need to create a release

@yasserf
Copy link
Contributor

yasserf commented May 9, 2020

this._collections[ collectionName ].createIndex({ ds_key: 1 });

Should actually be:

this._collections[ collectionName ].createIndex({ [ds_key]: 1 });

In hindsight..

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