Simple query with RegExp as value to match against
const queryResult = userCollection?.query({
'name', new RegExp(/Al{1,1}/ig)
});
Complex query with RegExp as value to match against
const queryResult = userCollection?.query({
'name', { match: new RegExp(/Al{1,1}/ig) }
});