Skip to content

Commit

Permalink
Update CHANGELOG, and add TODO to remember to get rid of cast when po…
Browse files Browse the repository at this point in the history
…ssible
  • Loading branch information
nielsenko committed Feb 8, 2022
1 parent d515b47 commit 2ff8a87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ vNext
### Changes
* Primary key annotation no longer requires field to be final.

### Enhancements
* Allow query on lists


0.2.0+alpha Release notes (2022-01-31)
==============================================================
Expand Down
2 changes: 2 additions & 0 deletions test/realm_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,8 @@ Future<void> main([List<String>? args]) async {

realm.write(() => realm.add(team));

// TODO: Get rid of cast, once type signature of team.players is a RealmList<Person>
// as opposed to the List<Person> we have today.
final result = (team.players as RealmList<Person>).query(r'name BEGINSWITH $0', ['K']);

expect(result, [person]);
Expand Down

0 comments on commit 2ff8a87

Please sign in to comment.