@apollo/utils.removealiases
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

removeAliases

The removeAliases function is a graphql-js visitor which removes aliases from all Field nodes. Note that this function makes no guarantees about the output being a valid GraphQL operation.

For example, the following operation is no longer valid once the alias is removed since the fields can't be merged:

query {
  x(a: 1)
  alias: x(a: 2)
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    945
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    945
  • 2.0.1
    847,060
  • 2.0.0
    23,264
  • 1.0.0
    610,333

Package Sidebar

Install

npm i @apollo/utils.removealiases

Weekly Downloads

1,182,111

Version

3.0.0

License

MIT

Unpacked Size

4.95 kB

Total Files

10

Last publish

Collaborators

  • dkuc
  • glasser
  • trevor.scheer
  • apollo-bot