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

Fix ra-data-graphql uses a Proxy, which prevents adding more methods automatically #9487

Merged
merged 1 commit into from Dec 4, 2023

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Dec 1, 2023

Problem

ra-data-graphql builds a data provider using a JS Proxy. This defeats further augmentation of the data provider, e.g. in Enterprise Modules where we use factory methods like addSearchMethods(dataProvider).

Solution

We don't actually need a Proxy, we can build a real data provider object.

@djhi djhi merged commit a5456ad into master Dec 4, 2023
11 checks passed
@djhi djhi deleted the graphql-no-proxy branch December 4, 2023 14:15
@fzaninotto fzaninotto added this to the 4.16.2 milestone Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants