23class DITTO_DEPRECATED_BECAUSE(
24 "Use DQL (Ditto Query Language) instead. For more information see: "
25 "https://ditto.com/link/legacy-to-dql-guide") Subscription
27 DITTO_DISABLE_DEPRECATED_WARNINGS(
"The legacy query API is deprecated")
29 friend class PendingIDSpecificOperation;
30 friend class PendingCursorOperation;
32 std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper;
33 nlohmann::json query_args;
34 std::shared_ptr<OrderBy> order_by;
38 Subscription(std::shared_ptr<DittoHandleWrapper> ditto_handle_wrapper,
39 std::string
query, nlohmann::json query_args,
40 std::shared_ptr<OrderBy> order_by, int32_t limit,
43 void on_stop()
override;
60 DITTO_REENABLE_WARNINGS