Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix z_queryable example output #319

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/universal/z_queryable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ int _main(int argc, char **argv) {
std::cout << "Declaring Queryable on '" << keyexpr << "'...\n";

auto on_query = [payload, keyexpr](const Query &query) {
auto query_keyexpr = query.get_keyexpr();
auto params = query.get_parameters();
auto query_payload = query.get_payload();
std::cout << ">> [Queryable ] Received Query '" << keyexpr << "?" << params;
std::cout << ">> [Queryable ] Received Query '" << query_keyexpr.as_string_view() << "?" << params;
if (query_payload.has_value()) {
std::cout << "' with value = '" << query_payload->get().as_string();
}
Expand Down
Loading