-
Hi, I would appreciate kindly if someone could explain to me the essence or the usage of the properties parameter on the @Index decorator. @Index({ properties: ['name', 'caption'], type: 'text' }) The properties parameter is provided or needed on which instances, is it a must i provide the array of properties and what is its usage? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
B4nan
Apr 16, 2021
Replies: 1 comment 6 replies
-
It can be a single string too, and they are required only at the entity level - it you use the decorator on a property, it will be inferred automatically. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
B4nan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It can be a single string too, and they are required only at the entity level - it you use the decorator on a property, it will be inferred automatically.