feat(state) - Query filter fields in the response item
Description
Add in the query request the opportunity to export only a subset of attribute from value data object, setting the map in the metadata request.
For the Redis, MongoDB, CosmosDB, Postgresql, CockroachDB state is possible to set in the metadata the parameter querySelectedAttributes to define from ResponseItem which field extract.
ex. with this configuration [{"name":"surname", "path":"employee.surname", "type": "Text"}, {"name":"productPrice", "path":"product.price", "type": "Numeric"}] the response Item will be in this format {"surname":"Jack", "productPrice":34.12}
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:
- [ ] Code compiles correctly
- [ ] Created/updated tests
- [ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
Do you have an issue opened for this PR with a proposal or discussion? Or can you link to a Discord conversation where this was discussed with maintainers?
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
@berndverst I've just created a proposal ticket for this implementation https://github.com/dapr/components-contrib/issues/3506
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!