15270821319 4e5c5d37f9 初步设计数据库,注册登录 il y a 7 mois
..
dist 4e5c5d37f9 初步设计数据库,注册登录 il y a 7 mois
src 4e5c5d37f9 初步设计数据库,注册登录 il y a 7 mois
LICENSE 4e5c5d37f9 初步设计数据库,注册登录 il y a 7 mois
README.md 4e5c5d37f9 初步设计数据库,注册登录 il y a 7 mois
package.json 4e5c5d37f9 初步设计数据库,注册登录 il y a 7 mois

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 }