Files
Home_Buying_App/node_modules/@apollo/utils.sortast
jackbeeby b412dfe2ca Initialisation
Added the packages and files for the backend server
2024-12-15 17:48:45 +11:00
..
2024-12-15 17:48:45 +11:00
2024-12-15 17:48:45 +11:00
2024-12-15 17:48:45 +11:00
2024-12-15 17:48:45 +11:00
2024-12-15 17:48:45 +11:00

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 }