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

How can i custom payload answer #3

Closed
alexdieudonne opened this issue Mar 13, 2022 · 2 comments
Closed

How can i custom payload answer #3

alexdieudonne opened this issue Mar 13, 2022 · 2 comments

Comments

@alexdieudonne
Copy link

Default i receive this

{ "type": "SUBSCRIPTION", "action": "create", "payload": { "id": 1, "test": "test123", }, "key": 1, "collection": "test" }

but i want to show this
I want to for example populate some field manually

{ "type": "SUBSCRIPTION", "action": "create", "payload": { "id": { "name":"dqsqs", "email":"al223@gmail.com" }, "test": "test123", }, "key": 1, "collection": "test" }

@br41nslug
Copy link
Owner

Especially for the update event returning partial results i was missing such a feature myself too! So i finally got around to adding an event for doing such manipulations. More info can be found here :) https://github.com/br41nslug/directus-websocket-subscribe#subscription-filter

@alexdieudonne
Copy link
Author

thank you !

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

No branches or pull requests

2 participants