Realm.objects in expo returns undefined -please help

I keep on getting

Array [
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
]

while trying filter realm.objects , it turns realm.objects itself returns undefined

Hi @Gbenga_Joseph,

Can you please specify which SDK you’re using? A code snippet of what you’re trying to do would also help clarifying the scenario.

In general, however, realm.objects returns something similar to a cursor: until you directly access its members, the objects themselves aren’t in memory.

For example, a JSON.stringify(…) may help to force the objects in, for debugging purposes (don’t use it in the actual app, though - massive results of the queries are better left on-demand!).