Searching on an other-table based Smart Field

Thanks @vince

And I guess your

const searchCondition = {
        [Op.or]: {
          { '$identity.firstName$': { [Op.iLike]: `%${split[0]}%` } },
          { '$identity.lastName$': { [Op.iLike]: `%${split[1]}%` } },
        },
     };

should be

const searchCondition = {
        [Op.or]: [
          { '$identity.firstName$': { [Op.iLike]: `%${split[0]}%` } },
          { '$identity.lastName$': { [Op.iLike]: `%${split[1]}%` } },
        ],
     };
1 Like