|
|
il y a 10 mois | |
|---|---|---|
| .. | ||
| dist | il y a 10 mois | |
| src | il y a 10 mois | |
| LICENSE | il y a 10 mois | |
| README.md | il y a 10 mois | |
| package.json | il y a 10 mois | |
The sortAST function is used to alphabetically sort all of the nodes in a graphql DocumentNode.
import { sortAST } from "@apollo/utils.sortast";
const sortedAST = sortAST(
parse(`#graphql
query Foo { c b a }
`),
);
print(sortedAST);
// query Foo { a b c }