Skip to content

Proposal: (Un)folding aliases #249

Closed
@esseswann

Description

@esseswann

I like concept of aliases very much because they allow to abstract components from request, which is especially useful when backend is agnostic about specific client implementation or under heavy development

But there is another aspect of client-server data structure controversy: nesting

To make client even more independent from server schema implementation I propose these enhancements:

To get a deeply nested value

node {
  alias: subnode.subnode.field
}

To put some values from the node under an alias

node {
  nodeField1
  nodeField2
  alias: {
    nodeField3
    nodeField4
  }
}

This would allow to quickly reshape queried data in declarative way while keeping the query concise and obvious

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions