Skip to content

Searching broken - 'contains' not a function #1

@vgjenks

Description

@vgjenks

Using latest redis-om, Node 16.x, and latest redislabs/redismod Docker image.

Calling this code, as outlined here: https://github.com/redis-developer/redis-om-node-tutorial

let all = await jobRepo.search()
            .where("description")
            .contains(req.query.search)
            .returnAll();

...causes this exception:

jobRepo.search(...).where(...).contains is not a function

jobRepo is a valid repository - this works and returns all data:

    `let all = await jobRepo.search().returnAll();`

Expected: Search the description field and return relevant results, per the tutorial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions