findIds method

List<int> findIds()

Finds Objects matching the query and returns their IDs.

Implementation

List<int> findIds() {
  final idArrayPtr = checkObxPtr(C.query_find_ids(_ptr), 'find ids');
  try {
    final idArray = idArrayPtr.ref;
    final ids = idArray.ids;
    return List.generate(idArray.count, (i) => ids[i], growable: false);
  } finally {
    C.id_array_free(idArrayPtr);
  }
}