Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change data/loader syntax #208

Open
kantord opened this issue May 28, 2018 · 0 comments
Open

Change data/loader syntax #208

kantord opened this issue May 28, 2018 · 0 comments

Comments

@kantord
Copy link
Owner

kantord commented May 28, 2018

Instead of having attr:loader attr:query etc., data should be modified like this:

  • Data should be an array
  • If data x is not an array, it's interpreted as [x]

Each element in the array can be

  • A "magic" string that is parsed into an array of loader objects
  • An object with one key and one value (e. q. {graphQl: ["asdf"]} etc.)

The first loader receives undefined as input argument. All the other loaders receive the result of the first loader as argument.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant