Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 557 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 557 Bytes

WebAssembly GraphQL parser

GraphQL parser in WebAssembly, compiled from Rust.

Status: experimental

API/AST structure will probably change. No semantic validation at the moment, just syntax (e.g. you can declare a field twice).

Usage via NPM

Published at npm as graphql-wasm-parser. Add it as dependency and use it like any other js module:

const { parse } = require('graphql-wasm-parser');

const ast = parse("{foo}");
console.log(JSON.stringify(ast));