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 62b3265 commit 2eb2da1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
vNext
==============================================================
* 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 2eb2da1

Please sign in to comment.