Skip to content

Commit

Permalink
Add info about refreshing realm for C++ and fix snooty build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dacharyc committed Jul 16, 2024
1 parent e9007a8 commit ba66828
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
After you update subscriptions, call ``refresh()`` on the :cpp-sdk:`realm
<structrealm_1_1db.html>`. This updates the database and outstanding objects
managed by the database to point to the most recent data.

.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.refresh-the-realm.cpp
:language: cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
:language: cpp
:copyable: false

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.subscribe-to-objects-matching-a-query.cpp
:language: cpp

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.subscribe-to-all-objects-of-a-type.cpp
:language: cpp

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
:language: cpp
:copyable: false

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.change-subscription-query.cpp
:language: cpp

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.remove-subscription-by-name.cpp
:language: cpp

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.clear-all-subscriptions.cpp
:language: cpp

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.remove-subscription-by-name.cpp
:language: cpp

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.. literalinclude:: /examples/generated/cpp/flexible-sync.snippet.subscribe-to-all-objects-of-a-type.cpp
:language: cpp

.. include:: /includes/api-details/cpp/sync/manage-sync-subscriptions-refresh-realm-description.rst

- id: csharp
content: |

Expand Down
2 changes: 1 addition & 1 deletion source/sdk/sync/manage-sync-subscriptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ subscriptions through this property.
.. tab::
:tabid: swift

.. include:: /includes/api-details/swift/sync/manage-sync-subscriptions-access-subscription-description.rst
.. include:: /includes/api-details/swift/sync/manage-sync-subscriptions-access-subscription-set-description.rst

.. tab::
:tabid: typescript
Expand Down

0 comments on commit ba66828

Please sign in to comment.