Commit Graph

290 Commits

Author SHA1 Message Date
vladar
4d024ee85e Test for lazy interface initialization + minor related tweak 2016-04-20 18:04:11 +06:00
Jeremiah VALERIE
3c6305c121 * Optimized implementation to interfaces using lazy loader
* Union types now accepting callback
2016-04-19 21:26:13 +02:00
Jeremiah VALERIE
545fe616a0 Add Complexity and Depth Query Security 2016-04-09 15:31:07 +02:00
Jeremiah VALERIE
2168d56d2d * Named default rules
* add accessors to ease rules management
* replace self by static on public methods to help extending DocumentValidator class
2016-04-09 08:44:57 +02:00
vladar
68d8681983 #30 Fixed recursion bug in ResolveInfo::getFieldSelection() 2016-04-01 16:30:52 +06:00
Jérémiah VALERIE
8763c94ea3 setDefaultResolveFn should be static
To ease override of $defaultResolveFn the setter should be `static`
2016-03-12 00:30:46 +01:00
vladar
d37fb34e96 Ability to define interface fields with closure 2016-02-27 12:29:45 +06:00
vladar
f548de59fe Fixes for definition config validation after recent changes 2016-02-25 15:23:42 +06:00
vladar
b890ef7cfe Ability to define InputObjectType fields with closure (#22) 2016-02-24 23:25:36 +06:00
vladar
cc6c6a14f5 Expose original type configs for custom app-level metadata 2016-01-21 17:07:05 +07:00
vladar
98e5835620 Avoid infinite loop when using recursive types and interfaces (#16) 2016-01-01 19:16:25 +06:00
Andy Truong
968da9d122 Add subscriptionType. 2015-12-21 06:35:22 +07:00
vladar
68fb4ceb9c Refactored facade to simplify custom output formatting 2015-11-02 20:39:51 +06:00
vladar
c81605bfb1 Fixed bug with failing error reporting for mismatching interface / union implementations 2015-10-25 19:35:36 +06:00
vladar
ea4d43f00f Better approach for latest performance tweaks (#8) 2015-10-25 19:08:24 +06:00
vladar
3b3da9e066 Several performance improvements (#8) 2015-10-25 14:23:15 +06:00
vladar
d982bad63a Make sure default argument values are passed to resolve function (#4) 2015-10-23 17:30:02 +06:00
vladar
965c3ff743 Minor executor refactoring related to handling "resolve" errors 2015-10-23 15:45:40 +06:00
vladar
83f42825f8 Reverted mapping executor (#6) 2015-10-23 15:44:01 +06:00
vladar
197c2d3532 Allow thunks for Union possible types + preserve original type config with Union (for custom user-land definitions) 2015-10-17 17:37:40 +06:00
vladar
5f2b2376e0 Allow custom attributes in type definitions for user-land metadata 2015-10-17 17:35:56 +06:00
vladar
2d54f654c2 Fine-grained type checks for Executor 2015-10-17 17:34:51 +06:00
vladar
25c42e6b52 Added Utils::groupBy as a convenience tool 2015-09-06 15:50:16 +06:00
vladar
c312f73df3 Oops, added missing parseValue for EnumType 2015-09-06 15:49:23 +06:00
vladar
83e33659cb Do not mess with original value in executor. Copy it instead. 2015-09-06 15:48:16 +06:00
vladar
3edf6248b0 Mapping Executor 2015-09-01 01:44:03 +06:00
vladar
aeb56d139a Ability to receive list of requested fields from ResolveInfo (recursively) 2015-08-30 13:48:17 +06:00
vladar
74b922ce68 Use name as value for Enums if value wasn't set in definition 2015-08-30 13:47:09 +06:00
vladar
9ccfb93ef2 Saving original field config with field definition to allow custom app-level definitions 2015-08-30 13:46:20 +06:00
vladar
c6a9712790 Several useful utils for Traversables 2015-08-30 13:44:52 +06:00
vladar
003fa005ed Ability to set type-level "resolveField" method 2015-08-30 13:43:55 +06:00
vladar
5241c8a5d3 Better error messages for config validation 2015-08-30 13:41:41 +06:00
vladar
841d6ab851 Updated to latest version of graphql-js 2015-08-17 20:01:55 +06:00
vladar
022c962942 New language features (NamedType, directives rethinking) 2015-08-17 02:53:11 +06:00
vladar
698b2cb862 Minor errors refactoring 2015-08-16 17:17:48 +06:00
David Mongeau-Petitpas
b3932c8fbe Updated listOfType validation to Traversable 2015-08-09 19:00:05 -04:00
David Mongeau-Petitpas
7431f2dcc5 Edit character bug 2015-08-09 14:26:36 -04:00
David Mongeau-Petitpas
afe28da475 Check on ListOfType is on ArrayAccess instead of ArrayObject 2015-08-09 14:25:01 -04:00
vladar
b2b08f2a07 Fixed missing cleanup in TypeInfo::leave 2015-07-16 15:16:27 +06:00
vladar
20c482ce2f Version 0.1 2015-07-15 23:05:46 +06:00