All Projects → sibelius → graphql2ts

sibelius / graphql2ts

Licence: other
Transform .graphql to graphql-js typescript

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to graphql2ts

babel-codemod-example
An example of how to use babel as a codemod
Stars: ✭ 24 (-41.46%)
Mutual labels:  ast, codemod
py-lua-parser
A Lua parser and AST builder written in Python.
Stars: ✭ 69 (+68.29%)
Mutual labels:  ast
lilt
LILT: noun, A characteristic rising and falling of the voice when speaking; a pleasant gentle accent.
Stars: ✭ 18 (-56.1%)
Mutual labels:  ast
MarkdownSyntax
☄️ A Type-safe Markdown parser in Swift.
Stars: ✭ 65 (+58.54%)
Mutual labels:  ast
language-rust
Parser and pretty-printer for the Rust language
Stars: ✭ 78 (+90.24%)
Mutual labels:  ast
ember-angle-brackets-codemod
Codemod to convert curly braces syntax to angle brackets syntax
Stars: ✭ 58 (+41.46%)
Mutual labels:  codemod
open-fortran-parser-xml
XML output generator for Open Fortran Parser, and Python wrapper for it.
Stars: ✭ 21 (-48.78%)
Mutual labels:  ast
pyre-ast
pyre-ast is an OCaml library to parse Python files. The library features its full-fidelity to the official Python spec, as well as its adoption of tagless-final style.
Stars: ✭ 25 (-39.02%)
Mutual labels:  ast
pyccolo
Declarative instrumentation for Python.
Stars: ✭ 70 (+70.73%)
Mutual labels:  ast
codeparser
Parse Wolfram Language source code as abstract syntax trees (ASTs) or concrete syntax trees (CSTs)
Stars: ✭ 84 (+104.88%)
Mutual labels:  ast
rector-doctrine
Rector upgrades rules for Doctrine
Stars: ✭ 37 (-9.76%)
Mutual labels:  ast
nast
A block-based intermediate representation for document-like content.
Stars: ✭ 35 (-14.63%)
Mutual labels:  ast
sass-lint-auto-fix
Automatically resolve s(a|c)ss linting issues
Stars: ✭ 93 (+126.83%)
Mutual labels:  ast
snapdragon-util
Utilities for the snapdragon parser/compiler.
Stars: ✭ 17 (-58.54%)
Mutual labels:  ast
ServiceModel.Grpc
Code-first for gRPC
Stars: ✭ 64 (+56.1%)
Mutual labels:  code-first
tiny-treeshaker
🌳🥤 A tiny codemod for tree shaking (experimental) 🌳🥤
Stars: ✭ 92 (+124.39%)
Mutual labels:  codemod
vscode-ast
Show JavaScript / TypeScript Abstract Syntax Tree
Stars: ✭ 34 (-17.07%)
Mutual labels:  ast
sql-parser
Parse SQL (select) statements into abstract syntax tree (AST) and convert ASTs back to SQL.
Stars: ✭ 230 (+460.98%)
Mutual labels:  ast
taro2-to-3
让 Taro2 项目自动升级到 Taro3 项目⚒️。
Stars: ✭ 31 (-24.39%)
Mutual labels:  codemod
stack-editor
[Deprecated, prefer calcit-editor]
Stars: ✭ 93 (+126.83%)
Mutual labels:  ast

graphql2ts

graphql2ts Logo

Transform .graphql files to graphql-js typescript code

History

We first had graphql-js implementation, but developers weren't happy with it. So it was born schema first with graphql-tools, merge-graphql-schemas, graphql-modules.

There is also a codemod to transform your .js files to .graphql files: jscodeshift-graphql-files.

After a lot of time, schema first showed some scaling problems, Schema First Problems, mostly because it does not colocate schema with resolvers, and code is much more powerful to implement abstraction on top of it.

This codemod exists to helps us move back to code first approach (graphql-js and related tools).

It will transform a .graphql file and transform in a graphql-js .ts declartion

How to run

npx graphql2ts myschema.graphql mySchemaOutput.ts

How to test

yarn jest
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].