Commit Graph

19 Commits

Author SHA1 Message Date
Mikhail Novikov
9efaa6049f Add field resolver option to graphql (#18346)
* Add field resolver to graphql

* Fix typo in definition header
2017-08-01 16:17:20 -07:00
Andy
0473fda9c6 graphql: Lint (#18257) 2017-07-24 10:29:25 -07:00
Ryan Cavanaugh
3e1197a88d Merge pull request #17859 from kepennar/master
[GraphQL] GraphQL Subscription type definition
2017-07-13 14:16:46 -07:00
kepennar
9746c28496 [GraphQL] force typescript 2.3 2017-07-08 12:49:12 +02:00
kepennar
3cc29a7e36 Add GraphQL Subscription type definition 2017-07-08 12:24:59 +02:00
Jack Moore
47dc2f3fb5 Added isDeprecated to GraphQLEnumValue 2017-06-30 00:49:17 -05:00
Ed Staub
dc1ea691f9 Update formatError.d.ts
See e.g. the flow definition in https://github.com/graphql/graphql-js/blob/master/src/error/formatError.js, where they are defined as optional.
I'm no GraphQL expert; caveat emptor.
2017-06-27 13:36:34 -04:00
Jan Melcher
a84aa3a591 Also include null 2017-06-21 10:47:33 +02:00
Jan Melcher
f78ae917ae get[Mutation|Subscription]Type() are nullable
According to [`schema.js`](https://github.com/graphql/graphql-js/blob/master/src/type/schema.js#L160), `GraphQLSchema.getMutationType()` and `getSubscriptionType()` may return `undefined`, so the types should reflect that.
2017-06-21 10:42:38 +02:00
Michael
d8b7da2042 Fix for getTypeMap() return type in graphql schema.d.ts. (#16343) 2017-05-05 16:20:09 -07:00
Firede
57caf93211 fixed lint errors. 2017-03-27 19:37:17 +08:00
Firede
a1b59d6a0f add TypeInfo.getEnumValue and EnumType.getValue 2017-03-27 19:08:48 +08:00
Firede
6843699843 add isNamedType & assertNamedType.
promisify isTypeOf and resolveType.
2017-03-27 19:00:26 +08:00
Firede
ad9c5dd1d2 add findBreakingChanges & findDeprecatedUsages 2017-03-27 18:58:40 +08:00
Firede
7fdcaa7710 remove duplicate functions. 2017-03-27 17:19:40 +08:00
Firede
67dba4b5a7 add findDeprecatedUsages. 2017-03-27 17:16:24 +08:00
Firede
352a5756b1 operationName is optional. 2017-03-27 17:15:50 +08:00
Firede
619d2fcc39 keyMap is optional. 2017-03-27 17:14:47 +08:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00