Skip to content

1.5.1 – RegExp matching values

Latest
Compare
Choose a tag to compare
@alexvcasillas alexvcasillas released this 28 Aug 13:41
· 30 commits to master since this release

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) }
});