|
пре 4 месеци | |
---|---|---|
.. | ||
dist | пре 4 месеци | |
src | пре 4 месеци | |
LICENSE | пре 4 месеци | |
README.md | пре 4 месеци | |
package.json | пре 4 месеци |
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 }