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

Error using objects.max function: Not implemented #3674

Closed
aj3x opened this issue Apr 5, 2021 · 5 comments · Fixed by #3678
Closed

Error using objects.max function: Not implemented #3674

aj3x opened this issue Apr 5, 2021 · 5 comments · Fixed by #3678
Assignees

Comments

@aj3x
Copy link

aj3x commented Apr 5, 2021

Goals

After updating from version 10.2.0 to 10.3.0, one of our functions stopped working. Created a test function and tried to get max value on Objects using max resulting in an error.

Expected Results

Get the max value from list of objects.

Actual Results

Got the following error:
ScreenshotUNITO-UNDERSCORE!20210405-094908!

Steps to Reproduce

  1. Create Realm
  2. Get objects
  3. Attempt to get max value from objects

Code Sample

Model = {
  name: "Test",
  properties: {
    count: { type: "int" },
  },
};

// Receives list of objects
const objects = realm.objects("TEST");
// attempt to call max on list of objects
return objects.max("count");
// receives Not implemented

Version of Realm and Tooling

  • Realm JS SDK Version: 10.3.0
  • Node or React Native: React Native 0.64
  • Client OS & Version: Android 8.0.0 and iOS 14.4.2
  • Which debugger for React Native: None
@hachther
Copy link

hachther commented Apr 6, 2021

I have the same issue

@iranaahsanali
Copy link

I have the same issue.

@kneth
Copy link
Contributor

kneth commented Apr 7, 2021

Thank you for the bug report. We believe the bug is only on React Native, but we need to investigate further.

@davidsonsns
Copy link

Got the same here with 10.3.0. Downgrading it to 10.2.0 worked perfectly.

@kneth
Copy link
Contributor

kneth commented Apr 9, 2021

We have merged a fix for it, and we plan to do a release early next week.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants