Skip to content

Commit

Permalink
export DotGraphQLParser.parseFile
Browse files Browse the repository at this point in the history
Reviewed By: alunyov

Differential Revision: D9260586

fbshipit-source-id: 2138226d08f873913f0d89dd4f0edf6bcc5559d8
  • Loading branch information
kassens authored and facebook-github-bot committed Aug 10, 2018
1 parent 8547db2 commit c9e2518
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/graphql-compiler/core/DotGraphQLParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ function parseFile(baseDir: string, file: File): ?DocumentNode {
});
}

exports.getParser = function getParser(baseDir: string): ASTCache {
function getParser(baseDir: string): ASTCache {
return new ASTCache({baseDir, parse: parseFile});
}

module.exports = {
parseFile,
getParser,
};

0 comments on commit c9e2518

Please sign in to comment.