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

custom resource finder #127

Open
fkowal opened this issue Aug 16, 2022 · 0 comments
Open

custom resource finder #127

fkowal opened this issue Aug 16, 2022 · 0 comments

Comments

@fkowal
Copy link
Contributor

fkowal commented Aug 16, 2022

Context:
When doing CSV export
It's quite common to have business requirements, to add some aggregate/external fields.

ie

shops + orders_aggregate { count }

I tried several approaches and one i'd like to enable

  1. <ExportButton resource="shops_with_orders_report" /> + buildField

where shops_with_orders_report is an "alias" that only exists in the application
and the resource that will be used is the shops
and a custom buildField will be provided and will decorate the shops data with extra gql { orders_aggregate { count }}

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