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

Apply transformation to fetch data before datastore processing #2037

Open
sdalu opened this issue Apr 24, 2024 · 0 comments
Open

Apply transformation to fetch data before datastore processing #2037

sdalu opened this issue Apr 24, 2024 · 0 comments
Labels

Comments

@sdalu
Copy link

sdalu commented Apr 24, 2024

Summary
I need to apply a transformation on the API endpoint (can't modify the backend for that) to make the result compatible wtih
the protocol used in readData

      data: {
        api: {
          readData: { url: '/api/1/devices', method: 'GET' }
        }
      }

Is there a way to specify a function to apply to the data returned by the url, before it is processed by the datastore ?

Version
4.21.22

@sdalu sdalu added the Question label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant