-
I'm using algolia in my react application and would like to get object by id, but I get the following error:
Can anyone help me resolve the error? |
Beta Was this translation helpful? Give feedback.
Answered by
Haroenv
Oct 26, 2021
Replies: 0 comments 2 replies
-
getObject isn't a function of algoliasearch/lite, only of the "full" version of algoliasearch. What you can do instead is searching with the objectID as a filter |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
miag676
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
getObject isn't a function of algoliasearch/lite, only of the "full" version of algoliasearch. What you can do instead is searching with the objectID as a filter
search({ filters: `objectID:${path}`})
, that way you can still use the lite version of algoliasearch.