title: Flutter objectbox limit
body: <p>a have a question, I need to apply limit in the messages array but I do khow can I do it.</p>
  <pre><code>static Stream&lt;Room?&gt; listenChatRoom(int roomId) {
      try {
        var builder = objectBox.store
            .box&lt;RoomObjectBoxModel&gt;()
            .query(RoomObjectBoxModel_.id.equals(roomId));
  
        builder.linkMany(RoomObjectBoxModel_.messages, RoomObjectBoxModel_.roomType.equals(&quot;chat&quot;));
  
        return builder.watch(triggerImmediately: true).transform(
          StreamTransformer.fromHandlers(handleData: (query, sink) {
            sink.add(query.findFirst()?.toDomain());
          }),
        );
      } catch (ex) {
        rethrow;
      }
    }
  </code></pre>