-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature: Ability to use a responseModifier for GraphQL push replication #4385
Feature: Ability to use a responseModifier for GraphQL push replication #4385
Conversation
docs-src/replication-graphql.md
Outdated
} | ||
``` | ||
|
||
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 'ts' instead of 'js' because your code below contains typings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I also changed it for the example of the pull.responseModifier
now.
docs-src/replication-graphql.md
Outdated
/** | ||
* In this example we aggregate the conflicting documents from a response object | ||
*/ | ||
const pullResponse = plainResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldnt this variable be called 'pushResponse' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops… it's unused anyway, so I removed it.
- Changed from 'js' to 'ts' in code blocks that explain "pull.responseModifier" and "push.responseModifier" - Removed unused variable definition with wrong name
Great work. Merged. |
Thanks 🙏 :) |
This PR contains:
Describe the problem you have without this PR
Todos