The Node.js Mapper supports querying using partition and clustering keys and it doesn't support generation for queries with "ALLOW FILTERING".
// Write your own query using query markers for parameters
const query = 'SELECT * FROM user_videos WHERE name = ? ALLOW FILTERING';
// Create a new ModelMapper method with your own query
// and a function to extract the parameters from an object
videoMapper.getByName = videoMapper.mapWithQuery(query, video => [ video.name ]);
Execute it each time
const result = await videoMapper.getByName({ name });
Note that executing this query is not a good idea as it will have unpredictable performance.
Thanks,
Jorge