question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: repository.search.where is not a function

See original GitHub issue

albums = await repository.search.where('artist').eq('Mushroomhead').return.all()

invokes error: TypeError: repository.search.where is not a function

adding //@ts-ignore

doesn’t help

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Lionardocommented, Jan 28, 2022

Oh yes, that did it. Thank you so much.

0reactions
guyroysecommented, Jan 28, 2022

You can’t do .eq against searchable text fields. You can only do full-text search using .matches.

https://github.com/redis/redis-om-node#full-text-search

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repository method is not a function (NestJS / TypeORM ...
I came across this problem as well. Make sure you're importing the repository into the module. Here's what your module should look probably ......
Read more >
TypeError: typeorm_2.Like is not a function · Issue #807 - GitHub
I have no repo - I just tried to use the TypeORM Like function. nothing ... I'm just trying to use Like inside...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
TypeError: this.userRepository.createUser is not a function
Every time I call this function from auth.service this error shows up: TypeError: this.userRepository.createUser is not a function.
Read more >
IsConnected not a function in next.js app - MongoDB
We just pushed a huge update to the next.js repo that changes how a couple of things work, so the issue is def...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found