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

Support flattening the data #9

Open
Konard opened this issue Aug 25, 2021 · 0 comments
Open

Support flattening the data #9

Konard opened this issue Aug 25, 2021 · 0 comments

Comments

@Konard
Copy link
Member

Konard commented Aug 25, 2021

This task depends on #8

It can also be useful to use resolver to flatten the structure:

{
  from_string
  to_string
}

instead of

{
  from { string }
  to { string }
}

It will make possible to do something like this with aliases:

{
  TrackName: from_string
  DownloadsCount: to_string
}

And the user will be able to get JSON with this structure:

{
  "TrackName": "GANGNAM STYLE",
  "DownloadsCount": "4163140300"
}

But, this can overcomplicate the API, so https://github.com/APIs-guru/graphql-lodash can be a better client-side solution.

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