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

RDoc-3168 Add the Create<T> overload that uses PredicateSubscriptionCreationOptions #1977

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

Danielle9897
Copy link
Member

@Danielle9897 Danielle9897 requested a review from garayx February 2, 2025 12:30
| **Filter** | `Expression<Func<T, bool>>` | Lambda expression defining the filter logic for the subscription. Will be translated to a JavaScript function. |
| **Projection** | `Expression<Func<T, object>>` | Lambda expression defining the projection that will be sent by the subscription for each matching document. Will be translated to a JavaScript function. |
| **Includes** | `Action<ISubscriptionIncludeBuilder<T>>` | An action that defines include clauses for the subscription. [Included documents](../../../client-api/data-subscriptions/creation/examples#create-subscription---include-documents) and/or [included counters](../../../client-api/data-subscriptions/creation/examples#create-subscription---include-counters) will be part of the batch sent by the subscription. Include methods can be chained. |
| **ChangeVector** | `string` | Allows to define a change vector from which the subscription will start processing. Useful for ad-hoc processes that need to process only recent changes. In such cases, you can set the field to _"LastDocument"_ to start processing from the latest document in the collection. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| **ChangeVector** | `string` | Allows to define a change vector from which the subscription will start processing. Useful for ad-hoc processes that need to process only recent changes. In such cases, you can set the field to _"LastDocument"_ to start processing from the latest document in the collection. |
| **ChangeVector** | `string` | Allows to define a change vector from which the subscription will start processing. Useful for ad-hoc processes that need to process only recent changes. In such cases, you can set the field to _"LastDocument"_ to start processing from the latest document in the collection, or provide actual Change Vector to start the processing from, by default all documents matching the RQL query will be sent, regardless of their creation time.. |

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, added

@Danielle9897 Danielle9897 requested a review from garayx February 3, 2025 11:33
@Danielle9897 Danielle9897 force-pushed the RDoc-3168-subscriptionsAPI branch from 70ce30d to 026df73 Compare February 3, 2025 15:14
@Danielle9897
Copy link
Member Author

Conflicts are resolved

@ppekrol ppekrol merged commit 225ff80 into ravendb:master Feb 3, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants