Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement $sw (startsWith) operator #15

Merged
merged 1 commit into from
Dec 24, 2024
Merged

feat: implement $sw (startsWith) operator #15

merged 1 commit into from
Dec 24, 2024

Conversation

markwylde
Copy link
Owner

@markwylde markwylde commented Dec 24, 2024

Implement the $sw (startsWith) operator.

await db.insert({ value: 'alpha' });
await db.insert({ value: 'beta' });
await db.insert({ value: 'chi' });
const result = await db.query({ value: { $sw: 'b' } });
assert.strictEqual(result.length, 1);
assert.strictEqual(result[0].value, 'beta');

@markwylde markwylde changed the title feat: implement operator feat: implement $sw (startsWith) operator Dec 24, 2024
@markwylde markwylde merged commit 4d7fc95 into master Dec 24, 2024
5 checks passed
@markwylde markwylde deleted the sw-operator branch December 24, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant