Skip to content

Commit

Permalink
fix(deps): Add GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed May 25, 2018
1 parent da6884b commit c99eafe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,12 @@ yarn add graphql-middleware-forward-binding
```ts
import { GraphQLServer } from 'graphql-yoga'
import { forward } from 'graphql-middleware-forward-binding'
import { Prisma } from 'prisma'

const typeDefs = `
type Query {
hello: String!
bug: String!
}
`
import { Prisma } from 'prisma-binding'

const bindingForwardMiddleware = forward('db')

const server = GraphQLServer({
typeDefs,
resolvers,
typeDefs: 'generated-schema.graphql',
middlewares: [bindingForwardMiddleware],
context: req => ({
...req,
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"name": "graphql-middleware-forward-binding",
"description": "GraphQL Binding forwardTo plugin for GraphQL Middleware",
"version": "0.0.0-semantic-release",
"files": ["dist"],
"files": [
"dist"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"typescript": {
Expand All @@ -11,8 +13,7 @@
"scripts": {
"prepublish": "npm run test",
"build": "rm -rf dist && tsc -d",
"lint":
"tslint --project tsconfig.json {src}/**/*.ts && prettier-check --ignore-path .gitignore {src,.}/{*.ts,*.js}",
"lint": "tslint --project tsconfig.json {src}/**/*.ts && prettier-check --ignore-path .gitignore {src,.}/{*.ts,*.js}",
"test": "npm run lint && npm run build",
"semantic-release": "semantic-release"
},
Expand All @@ -23,6 +24,7 @@
},
"devDependencies": {
"@types/node": "^10.1.2",
"graphql": "^0.13.2",
"prettier": "^1.12.1",
"prettier-check": "^2.0.0",
"semantic-release": "^15.5.0",
Expand Down
10 changes: 8 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,12 @@ graphql-tools@^2.23.1:
iterall "^1.1.3"
uuid "^3.1.0"

graphql@^0.13.2:
version "0.13.2"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.13.2.tgz#4c740ae3c222823e7004096f832e7b93b2108270"
dependencies:
iterall "^1.2.1"

handlebars@^4.0.2:
version "4.0.11"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc"
Expand Down Expand Up @@ -1207,7 +1213,7 @@ issue-parser@^2.0.0:
dependencies:
lodash "^4.17.4"

[email protected], iterall@^1.1.3:
[email protected], iterall@^1.1.3, iterall@^1.2.1:
version "1.2.2"
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.2.2.tgz#92d70deb8028e0c39ff3164fdbf4d8b088130cd7"

Expand Down Expand Up @@ -1836,7 +1842,7 @@ safe-regex@^1.1.0:
dependencies:
ret "~0.1.10"

semantic-release@^15.4.3:
semantic-release@^15.5.0:
version "15.5.0"
resolved "https://registry.yarnpkg.com/semantic-release/-/semantic-release-15.5.0.tgz#cbbaefb311a41c6f41b2f1f4fbab91bd95db409b"
dependencies:
Expand Down

0 comments on commit c99eafe

Please sign in to comment.