File tree Expand file tree Collapse file tree 3 files changed +2341
-25
lines changed Expand file tree Collapse file tree 3 files changed +2341
-25
lines changed Original file line number Diff line number Diff line change 8
8
" schema"
9
9
],
10
10
"scripts" : {
11
- "prepare" : " npm run build; cp src/schema.graphql dist/schema.graphql" ,
12
- "build" : " rm -rf dist && tsc -d" ,
11
+ "prepare" : " npm run build && cp src/schema.graphql dist/schema.graphql" ,
12
+ "build" : " rm -rf dist && graphql codegen && tsc -d" ,
13
13
"test" : " echo No tests yet"
14
14
},
15
15
"dependencies" : {
16
16
"apollo-link" : " 1.2.2" ,
17
17
"apollo-link-http" : " 1.5.3" ,
18
18
"cross-fetch" : " 2.1.1" ,
19
19
"graphql" : " 0.13.2" ,
20
- "graphql-binding" : " ^ 1.4.0-beta.22 " ,
20
+ "graphql-binding" : " 1.4.0-beta.23 " ,
21
21
"graphql-tools" : " 2.23.1"
22
22
},
23
23
"devDependencies" : {
24
24
"@types/graphql" : " 0.13.0" ,
25
25
"@types/node" : " 9.6.11" ,
26
+ "graphql-cli" : " ^2.16.0-beta.6" ,
26
27
"typescript" : " 2.8.3"
27
28
},
28
29
"repository" : {
Original file line number Diff line number Diff line change 1
- import { makeBindingClass } from 'graphql-binding'
2
- import { GraphQLResolveInfo } from 'graphql'
1
+ import { makeBindingClass , Options } from 'graphql-binding'
2
+ import { GraphQLResolveInfo , GraphQLSchema } from 'graphql'
3
+ import { IResolvers } from 'graphql-tools/dist/Interfaces'
3
4
import schema from './schema'
4
5
5
6
export interface Query {
@@ -66,6 +67,13 @@ export interface BindingInstance {
66
67
mutation : Mutation
67
68
subscription : Subscription
68
69
request : < T = any > ( query : string , variables ?: { [ key : string ] : any } ) => Promise < T >
70
+ delegate ( operation : 'query' | 'mutation' , fieldName : string , args : {
71
+ [ key : string ] : any ;
72
+ } , infoOrQuery ?: GraphQLResolveInfo | string , options ?: Options ) : Promise < any > ;
73
+ delegateSubscription ( fieldName : string , args ?: {
74
+ [ key : string ] : any ;
75
+ } , infoOrQuery ?: GraphQLResolveInfo | string , options ?: Options ) : Promise < AsyncIterator < any > > ;
76
+ getAbstractResolvers ( filterSchema ?: GraphQLSchema | string ) : IResolvers ;
69
77
}
70
78
71
79
export interface BindingConstructor < T > {
You can’t perform that action at this time.
0 commit comments