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

Value deep equality function #358

Merged
merged 6 commits into from
Oct 11, 2024
Merged

Value deep equality function #358

merged 6 commits into from
Oct 11, 2024

Conversation

macjuul
Copy link
Contributor

@macjuul macjuul commented Oct 11, 2024

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

There is currently no convenient way to compare SurrealQL values, such as UUIDs or record ids.

What does this change do?

Adds a new equals function to each SurrealQL value type, as well as an exported equals function which performs deep equality on two values.

What is your testing strategy?

Added a unit test

Is this related to any issues?

If this pull request is related to any other pull request or issue, or resolves any issues - then link all related pull requests and issues here.

Have you read the Contributing Guidelines?

@macjuul macjuul requested a review from kearfy as a code owner October 11, 2024 09:12
src/data/types/future.ts Outdated Show resolved Hide resolved
@macjuul macjuul merged commit eeddc8c into main Oct 11, 2024
10 checks passed
@macjuul macjuul deleted the feat/equals branch October 11, 2024 10:06
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.

2 participants