Skip to content

Commit

Permalink
fix: Add support for nullable types
Browse files Browse the repository at this point in the history
This commit adds support for `nullable` types in schema.

Fixes #197

Also uses more `graphql` functions to gain more type safe and clener code.
  • Loading branch information
maticzav committed Dec 10, 2018
1 parent 7894b7e commit ee54b24
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 256 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"contributors": [
"Kim Brandwijk <kim.brandwijk@gmail.com>",
"Tim Suchanek <suchanek@prisma.io>",
"Marcin Pacholec <marcin11235@gmail.com>"
"Marcin Pacholec <marcin11235@gmail.com>",
"Matic Zavadlal <matic.zavadlal@gmail.com>"
],
"bin": {
"graphql-binding": "./dist/bin.js"
Expand All @@ -18,13 +19,14 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prepublish": "yarn build",
"prepublish": "npm-run-all build",
"clean": "rimraf dist",
"compile": "tsc -d",
"lint": "tslint --project tsconfig.json {src}/**/*.ts && prettier-check --ignore-path .gitignore src/**/*.ts",
"build": "npm-run-all clean compile",
"pretest": "npm run build",
"test": "npm run lint && ava"
"pretest": "npm-run-all build",
"test-lint": "tslint --project tsconfig.json {src}/**/*.ts && prettier-check --ignore-path .gitignore src/**/*.ts",
"test-ava": "ava",
"test": "npm-run-all test-*"
},
"devDependencies": {
"@types/graphql": "14.0.3",
Expand Down

0 comments on commit ee54b24

Please sign in to comment.