15270821319 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
..
dist 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
src 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
LICENSE 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
README.md 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
package.json 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa

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 }