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

For any one want to use Json column in aggregate method #77

Open
sezohessen opened this issue Dec 25, 2024 · 0 comments
Open

For any one want to use Json column in aggregate method #77

sezohessen opened this issue Dec 25, 2024 · 0 comments

Comments

@sezohessen
Copy link

Assume column is meta and the data inside the meta you want to for example SUM it is payment_details.amount.
Then you can use

->sum('JSON_EXTRACT(meta, "$.payment_details.amount")')

And its WORKING!!

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

1 participant