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

Cannot set up the index in the schema #4904

Closed
arthurtalkgoal opened this issue Feb 21, 2021 · 1 comment
Closed

Cannot set up the index in the schema #4904

arthurtalkgoal opened this issue Feb 21, 2021 · 1 comment

Comments

@arthurtalkgoal
Copy link

I found that the fields setting for model does not have the index option to set up the database index but the isUnique etc will create the index automatically.

Is there any way to set up the index? e.g.

exports.Sponsor = {
  access: DEFAULT_LIST_ACCESS,
  fields: {
    name: { type: Text, index: true },
    website: { type: Text },
  },
};

@gautamsi
Copy link
Member

right config is isIndexed

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

3 participants