|
hace 8 meses | |
---|---|---|
.. | ||
dist | hace 8 meses | |
src | hace 8 meses | |
LICENSE | hace 8 meses | |
README.md | hace 8 meses | |
package.json | hace 8 meses |
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 }