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

How to write index with JS #4

Closed
shengxq opened this issue Feb 25, 2018 · 1 comment
Closed

How to write index with JS #4

shengxq opened this issue Feb 25, 2018 · 1 comment

Comments

@shengxq
Copy link

shengxq commented Feb 25, 2018

This code is when using the JS language
How to write in JSON

@Index("name2-idx")

@Index(["firstName", "lastName"])
@Index(["lastName", "middleName"])
@Index(["firstName", "lastName", "middleName"], { unique: true })

@pleerock
Copy link
Member

pleerock commented Jun 4, 2018

You can find documentation here.

@pleerock pleerock closed this as completed Jun 4, 2018
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