Hello!
I have a view that’s supposed to stream changes back. However, I can’t call the view from an action because it’s not part of components
.
service SnapshotView {
// Updates omitted
rpc StreamUpdates(StreamUpdatesRequest) returns (stream Snapshot) {
option (kalix.method).view.query = {
query: "SELECT * FROM snapshots WHERE user_id = :user_id"
stream_updates: true
};
};
}
message StreamUpdatesRequest {
optional string user_id = 1;
}
message Snapshot {
optional string user_id = 1;
...
}
After sbt compile
, I’m not able to see the components.snapshotViewImpl
when trying to call it from an action.
Removing the stream_updates: true
and keeping only returns (stream Snapshot)
still has the issue.
Removing both the stream_updates: true
and using returns (Snapshot)
, I’m able to see components.snapshotViewImpl
from the action.
This looks like a bug? Not sure what I’m doing wrong.