{"size": 264, "ext": "js", "max_stars_repo_path": "src/utilities/parse.js", "max_stars_repo_name": "graphql-factory/graphql-factory", "max_stars_repo_stars_event_min_datetime": "2016-09-15T08:28:42.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-13T03:56:04.000Z", "max_issues_repo_path": "src/utilities/parse.js", "max_issues_repo_name": "graphql-factory/graphql-factory", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/utilities/parse.js", "max_forks_repo_name": "graphql-factory/graphql-factory", "max_forks_repo_forks_event_min_datetime": "2017-03-09T19:02:38.000Z", "max_forks_repo_forks_event_max_datetime": "2017-07-17T23:30:01.000Z"}
{"max_stars_count": 54, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 24.0, "max_line_length": 52, "alphanum_fraction": 0.7575757576}
import { print, parse } from 'graphql';
import { printSchemaWithDirectives } from './print';

export function printAndParse(nodes) {
  return parse(print(nodes));
}

export function parseSchemaIntoAST(schema) {
  return parse(printSchemaWithDirectives(schema));
}
