|
|
před 1 rokem | |
|---|---|---|
| .. | ||
| dist | před 1 rokem | |
| src | před 1 rokem | |
| LICENSE | před 1 rokem | |
| README.md | před 1 rokem | |
| package.json | před 1 rokem | |
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 }