#i have problem with redis-om-node with searchraw

1 messages · Page 1 of 1 (latest)

gusty turtle
#

const query = this.shopMasterRepository.searchRaw(
@province_code:{BKK} RETURN 1 province_code,
);
return await query.all();
i want to return only province_code

marsh rain
#

Redis OM for Node.js doesn't do that. You always get all the fields.

scarlet basalt
marsh rain
#

It's just the query part that interacts with the index. The params like RETURN and LIMIT are generated when you call things like .return.all().

scarlet basalt
#

a bit weird ngl
i would assume raw would act like raw and not suffer from library behavior