Skip to content

Support flattening the data #9

@konard

Description

@konard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions