itcast 6e512b8ce6 aaaa пре 4 месеци
..
dist 6e512b8ce6 aaaa пре 4 месеци
src 6e512b8ce6 aaaa пре 4 месеци
LICENSE 6e512b8ce6 aaaa пре 4 месеци
README.md 6e512b8ce6 aaaa пре 4 месеци
package.json 6e512b8ce6 aaaa пре 4 месеци

README.md

sortAST

The sortAST function is used to alphabetically sort all of the nodes in a graphql DocumentNode.

Usage

import { sortAST } from "@apollo/utils.sortast";

const sortedAST = sortAST(
  parse(`#graphql
  query Foo { c b a }
`),
);

print(sortedAST);
// query Foo { a b c }