Skip to content

Commit 600c288

Browse files
committed
fix: use TypeStorage from graphql-compose
1 parent 978aa6c commit 600c288

File tree

4 files changed

+9
-37
lines changed

4 files changed

+9
-37
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"dox": "^0.9.0"
2727
},
2828
"peerDependencies": {
29-
"elasticsearch": ">=12.0.0 || >=13.0.0",
30-
"graphql-compose": ">=2.9.5"
29+
"elasticsearch": ">=12.0.0 || >=13.0.0 || >=14.0.0",
30+
"graphql-compose": ">=2.13.1"
3131
},
3232
"devDependencies": {
3333
"babel-cli": "^6.26.0",
@@ -49,7 +49,7 @@
4949
"express-graphql": "^0.6.11",
5050
"flow-bin": "^0.64.0",
5151
"graphql": "0.13.0-rc.1",
52-
"graphql-compose": "^2.13.0",
52+
"graphql-compose": "^2.13.1",
5353
"jest": "^22.1.4",
5454
"nodemon": "^1.14.11",
5555
"npm-run-all": "^4.1.2",

src/typeStorage.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* @flow */
22

3-
import typeStorage from './typeStorage';
3+
import { TypeStorage } from 'graphql-compose';
4+
5+
const typeStorage = new TypeStorage();
46

57
export function getTypeName(name: string, opts: any): string {
68
return `${(opts && opts.prefix) || 'Elastic'}${name}${(opts && opts.postfix) || ''}`;

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,9 +2705,9 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4, graceful-fs@^4.1.6:
27052705
version "1.0.1"
27062706
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
27072707

2708-
graphql-compose@^2.13.0:
2709-
version "2.13.0"
2710-
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-2.13.0.tgz#a6dfdbb9be53e5a12cc063503cf8b16d7fcebff5"
2708+
graphql-compose@^2.13.1:
2709+
version "2.13.1"
2710+
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-2.13.1.tgz#8d132b1786a77e7016932c636fff6c2d39e239d3"
27112711
dependencies:
27122712
babel-runtime "^6.26.0"
27132713
object-path "^0.11.4"

0 commit comments

Comments
 (0)