15270821319 4e5c5d37f9 初步设计数据库,注册登录 há 8 meses atrás
..
dist 4e5c5d37f9 初步设计数据库,注册登录 há 8 meses atrás
src 4e5c5d37f9 初步设计数据库,注册登录 há 8 meses atrás
LICENSE 4e5c5d37f9 初步设计数据库,注册登录 há 8 meses atrás
README.md 4e5c5d37f9 初步设计数据库,注册登录 há 8 meses atrás
package.json 4e5c5d37f9 初步设计数据库,注册登录 há 8 meses atrás

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 }