Commit Graph

  • e6e531b88b Server: throw only when there is a configuration or logic error (invariant violation) Vladimir Razuvaev 2017-07-19 19:30:39 +0700
  • 90088c7bde Note in UPGRADE.md about new base class of GraphQL\Error\UserError Vladimir Razuvaev 2017-07-19 15:52:00 +0700
  • 38922dbbed Default error formatter now returns "Internal server error" unless error is client-aware and safe to report directly to end-users Vladimir Razuvaev 2017-07-18 20:57:30 +0700
  • fbcd20814a Scalar type serialize method now throws InvariantViolation and parseValue throws UserError Vladimir Razuvaev 2017-07-18 20:52:39 +0700
  • 8e3d1eb29b Merge branch 'master' of https://github.com/webonyx/graphql-php into v0.10 Vladimir Razuvaev 2017-07-18 00:42:52 +0700
  • 8fe26a1a21 String and ID types should not try to convert non-scalar values to string (#121) v0.9.13 Vladimir Razuvaev 2017-07-18 00:25:45 +0700
  • 49208d758d Server: use proper batching helper Vladimir Razuvaev 2017-07-17 23:48:30 +0700
  • 919cf80240 Server: batched queries with shared deferreds (promises) #105 Vladimir Razuvaev 2017-07-17 20:31:26 +0700
  • 24ffd605f4 New method "Executor::promiseToExecute()" which always returns promise (even for SyncPromiseAdapter) Vladimir Razuvaev 2017-07-17 18:29:14 +0700
  • 0e2ac57515 Split HTTP server execution to canonical replaceable steps: parsing, validation, execution with separate tests for each step Vladimir Razuvaev 2017-07-17 16:57:30 +0700
  • f8c3195e54 Granular methods for HTTP request parsing + tests Vladimir Razuvaev 2017-07-16 18:52:38 +0700
  • d2cbb0c354 Restored tests for deprecated GraphQL\Server Vladimir Razuvaev 2017-07-14 20:06:24 +0700
  • 794d3672ef Initial pass on standard server implementation (also deprecated current GraphQL\Server which is undocumented anyway) Vladimir Razuvaev 2017-07-14 19:08:47 +0700
  • a3b40db0fb Enhanced Utils::printSafe() to output more information about arrays Vladimir Razuvaev 2017-07-14 15:16:43 +0700
  • 3f04d29628 Ability to pass custom set of validation rules when executing a query (including empty set to skip validation) #134 Vladimir Razuvaev 2017-07-13 20:29:49 +0700
  • 37a42ededd Query validation should pass if empty array of rules is provided Vladimir Razuvaev 2017-07-13 02:38:31 +0700
  • 65d9472b0b Moved PromiseAdapter to ExecutionContext; allow passing it to Executor::execute() directly vs setting statically Vladimir Razuvaev 2017-07-12 19:44:04 +0700
  • bf0a7a8e2b Change minimum PHP version requirement from 5.4.0 to 5.5.0 (to enable try-finally and generators) Vladimir Razuvaev 2017-07-12 17:46:43 +0700
  • aaa5b7af41 Global config; descriptor moved to appropriate namespace; minor cleanup Vladimir Razuvaev 2017-07-10 20:17:55 +0700
  • 5e6acb60a6 Merge pull request #142 from symm/shorthand-docs Vladimir Razuvaev 2017-07-11 21:49:49 +0700
  • 81376e7c34
    Document shorthand usage Gareth Jones 2017-07-07 20:26:01 +0100
  • 296544089c Moved GraphQL\Utils to GraphQL\Utils\Utils Vladimir Razuvaev 2017-07-10 19:50:26 +0700
  • ed28deda81 Replaced trigger_error with Warning for resolveType warning Vladimir Razuvaev 2017-07-10 19:38:12 +0700
  • 9551569ffe Merge branch 'lazy-types' into v0.10 Vladimir Razuvaev 2017-07-10 17:11:41 +0700
  • 463d995d95 Reverted #116 (now Executor::defaultFieldResolver checks for instanceof Closure vs is_callable again) Vladimir Razuvaev 2017-07-08 14:56:15 +0700
  • 3beeb06340 Merge branches 'master' and 'v0.10' of https://github.com/webonyx/graphql-php into v0.10 Vladimir Razuvaev 2017-07-06 19:50:23 +0700
  • bc6a7a3d1d Fix: allow MixedStore to accept true, false, null and floats as keys + related tests v0.9.12 Vladimir Razuvaev 2017-07-06 19:29:33 +0700
  • 24bcc65314 SchemaPrinter: reverted sorting of fields in printed version (as it breaks s = parse(print(s)) rule) Vladimir Razuvaev 2017-07-05 19:45:02 +0700
  • ea94ee7515 Utility function getDirectiveValues + related refactoring Vladimir Razuvaev 2017-07-05 19:33:25 +0700
  • a79a51d445 Schema Parsing: allow leading pipe for union type definitions Vladimir Razuvaev 2017-07-05 18:42:27 +0700
  • 30632050a5 Validation: added test cases to check support for good negative floats and ints Vladimir Razuvaev 2017-07-05 18:35:45 +0700
  • 0b7d55c30d SchemaPrinter: sort fields before printing to get more stable diff Vladimir Razuvaev 2017-07-05 18:33:16 +0700
  • 9b9a74c1d1 Spec compliance: errors in buildExecutionContext() are caught and included in result rather than thrown Vladimir Razuvaev 2017-07-05 17:31:35 +0700
  • 678cf5d0bf Renamed argument of GraphQL::execute() Vladimir Razuvaev 2017-07-05 16:26:02 +0700
  • 78d9ba0d5e Allow providing default field resolver for execution call Vladimir Razuvaev 2017-07-05 16:22:01 +0700
  • 9f4980ce49 Fix for broken build on PHP < 5.6 Vladimir Razuvaev 2017-07-04 22:18:55 +0700
  • b47c87f793 Allow null values for enums Vladimir Razuvaev 2017-07-04 20:19:52 +0700
  • f569c6de2d Spec compliance: coercion of Int values Vladimir Razuvaev 2017-07-04 18:27:20 +0700
  • 90e1ea4d22 Added tools for warnings with ability to suppress them Vladimir Razuvaev 2017-07-04 17:10:55 +0700
  • 88b85c9761 Make 'errors' top property in response array Vladimir Razuvaev 2017-07-04 16:29:30 +0700
  • 1c41fb27ed Added test for enums with null values Vladimir Razuvaev 2017-07-04 16:27:40 +0700
  • 189877c173 Allow passing custom TypeInfo to validate Vladimir Razuvaev 2017-07-04 16:19:16 +0700
  • a53b798f29 Minor spelling fix Vladimir Razuvaev 2017-07-04 16:12:56 +0700
  • fc9ad7e37a Unify wording in error messages Vladimir Razuvaev 2017-07-04 14:02:35 +0700
  • 76e182e616 Forbid duplicate type definitions Vladimir Razuvaev 2017-07-04 13:59:46 +0700
  • c3db8de9e7 Note about dunderscore becoming hard error in next version Vladimir Razuvaev 2017-07-04 13:51:22 +0700
  • 3e1fc1a922 Refactored isThenable checks in Executor Vladimir Razuvaev 2017-07-04 13:47:50 +0700
  • 32376dd6ee Fix: type safety for TypeInfo Vladimir Razuvaev 2017-07-04 13:25:01 +0700
  • 4c96193027 Fix: isLeafType should not return true for ListOfType and NonNull wrappers Vladimir Razuvaev 2017-07-04 13:17:09 +0700
  • c5484ae6f9 Convert error to warning for non-compliant usage of __ in names Vladimir Razuvaev 2017-07-04 00:28:17 +0700
  • 34bd378c7e Refactored executor logic related to isTypeOf Vladimir Razuvaev 2017-07-04 00:09:32 +0700
  • 29c1132554 getValue() for EnumType (and getEnumValue() for TypeInfo) Vladimir Razuvaev 2017-07-03 23:23:12 +0700
  • 14ef8ef835 Fixed typo in buildSchema Vladimir Razuvaev 2017-07-03 23:09:50 +0700
  • d64c352262 Ability for interface types to resolve type asynchronously Vladimir Razuvaev 2017-07-03 23:08:20 +0700
  • 445f579f09 Include expected type in isValidPHPValue error message Vladimir Razuvaev 2017-07-03 18:18:50 +0700
  • e30f2a99cf Pass ResolveInfo in default field resolver when value is callable Vladimir Razuvaev 2017-07-03 18:14:45 +0700
  • faf81ef18a Catch exceptions in isValidPHPValue and return corresponding error message Vladimir Razuvaev 2017-07-03 18:12:12 +0700
  • 7937b15855 Fixed several typos Vladimir Razuvaev 2017-07-03 18:04:32 +0700
  • b471938f16 Consistent validation of type names + reject names starting with __ Vladimir Razuvaev 2017-07-03 18:04:08 +0700
  • f668300cd8 Fixed minor bug in blog example (#114) Vladimir Razuvaev 2017-06-27 20:04:12 +0700
  • b147b528e2 Merge branch 'v0.10' of https://github.com/webonyx/graphql-php into v0.10 Vladimir Razuvaev 2017-06-27 16:41:31 +0700
  • 21e3445754 Merge pull request #116 from leocavalcante/resolve-callables Vladimir Razuvaev 2017-06-27 00:37:30 +0700
  • 1657f0e9bd Merge branch 'master' into v0.10 Vladimir Razuvaev 2017-06-26 17:47:36 +0700
  • d18cb84ec4 Merge pull request #127 from danez/throwable Vladimir Razuvaev 2017-06-25 21:56:00 +0700
  • 65ef159ddc
    Support PHP7 error exceptions everywhere Daniel Tschinder 2017-06-06 12:55:38 +0200
  • 61368c59f2 Merge branch 'master' of https://github.com/webonyx/graphql-php Vladimir Razuvaev 2017-06-24 22:45:40 +0700
  • a0657b7847 Refactored Lexer algorithm for better performance. Now O(N) vs O(N^2) previously (#137) Vladimir Razuvaev 2017-06-24 22:42:55 +0700
  • 141afc1cf7 Merge pull request #131 from n1ru4l/feature-disable-introspection-validation-rule v0.9.11 Vladimir Razuvaev 2017-06-19 13:35:23 +0700
  • 393a741d5e Merge pull request #132 from simPod/master Vladimir Razuvaev 2017-06-19 13:33:49 +0700
  • 6a4785dc4a
    Fixed incorrect type hints in method docs Simon Podlipsky 2017-06-18 12:29:29 +0200
  • beaf91d080 Adds example for enabling the DisableIntrospection rule. Laurin Quast 2017-06-17 15:01:37 +0200
  • 719a438628 Adds DisableIntrospection validation rule to the DocumentValidator (default: disabled) Laurin Quast 2017-06-17 14:51:38 +0200
  • 1c62f554ae Implements DisableIntrospection validation rule Laurin Quast 2017-06-17 14:50:24 +0200
  • 6d6d1ac01b Adds tests for DisableIntrospection Validation rule Laurin Quast 2017-06-17 14:49:07 +0200
  • ffc4542cd0 Improvements in config validation Vladimir Razuvaev 2017-06-12 22:48:48 +0700
  • e7cde5ecf3 Fixed broken 5.4 build v0.9.10 Vladimir Razuvaev 2017-06-03 17:17:42 +0700
  • bc4b990946 Do not run query complexity validation if there were other validation errors (as it will throw and mess up previous validation results), see #125 Vladimir Razuvaev 2017-06-03 17:07:01 +0700
  • bc6c0e2eea Reverted float literal parsing, as it was not the cause of #125 Vladimir Razuvaev 2017-06-03 16:48:29 +0700
  • 8c9a2a5f12 Travis tweaks: use composer version of phpunit vs phar version as HHVM will mess with paths within phars resulting in broken builds Vladimir Razuvaev 2017-06-03 15:34:24 +0700
  • 56eaaa2400 Attempting to fix broken HHVM build in Travis Vladimir Razuvaev 2017-06-03 15:01:30 +0700
  • 4eb68bf63f Do not parse invalid input strings as floats (see #125) Vladimir Razuvaev 2017-06-03 14:04:47 +0700
  • 6fb62b25b3 Fixed "out of memory" error for edge cases of resolveType() calls Vladimir Razuvaev 2017-05-29 22:54:35 +0700
  • 154fdfee11 Merge pull request #124 from mcg-web/use-dedicated-exception-for-type-parsing-error v0.9.9 Vladimir Razuvaev 2017-05-29 22:32:10 +0700
  • 6d5b4e5a37 Use dedicated exception for scalar type parsing error Jeremiah VALERIE 2017-05-28 11:44:49 +0200
  • 53edfa0f84 Merge pull request #117 from shinderohitt/patch-1 Vladimir Razuvaev 2017-05-16 17:20:42 +0700
  • 06183635f5 Fix test commands Rohit Shinde 2017-05-11 13:35:25 +0530
  • 8a5f337469 Extract anonymous class leocavalcante 2017-05-07 19:42:59 -0300
  • e07c86bd5e Default resolve callables leocavalcante 2017-05-07 19:21:20 -0300
  • b48875693c Deployed 848f9c3 with MkDocs version: 0.16.3 Vladimir Razuvaev 2017-04-25 18:15:40 +0700
  • 848f9c3edf Preserve backwards compatibility of Ast\Node::toArray(): do shallow conversion by default v0.9.8 Vladimir Razuvaev 2017-04-25 18:02:45 +0700
  • 835e4e6b2d Removed unnecessary loc entry in AST\Node::toArray() Vladimir Razuvaev 2017-04-25 18:00:06 +0700
  • 86f01ac1a6 Merge pull request #113 from pascaldevink/add_directives_to_complexity_calculation Vladimir Razuvaev 2017-04-25 14:49:13 +0700
  • 11a1b13b72
    Use directives to calculate query complexity Pascal de Vink 2017-04-24 14:00:29 +0200
  • 5948d5198e Merge pull request #106 from AndreasHeiberg/fix-to-string-node Vladimir Razuvaev 2017-04-24 18:04:02 +0700
  • ed8bf4e2b2 fix __toString() for AST Node Andreas Heiberg 2017-04-07 11:34:33 +0100
  • cb40df220e Merge pull request #101 from PowerKiKi/patch-1 Vladimir Razuvaev 2017-03-22 13:41:59 +0700
  • 5ca69c6ec8
    Make Hello World compatible with GraphiQL Adrien Crivelli 2017-03-22 10:53:00 +0900
  • ac5c518cbe Merge pull request #100 from PowerKiKi/patch-1 Vladimir Razuvaev 2017-03-21 13:18:58 +0700
  • 070ab7d430 Simplify install instructions Adrien Crivelli 2017-03-20 23:15:17 +0900
  • 7ef9f91672 Merge pull request #98 from decebal/master v0.9.7 Vladimir Razuvaev 2017-03-16 23:51:38 +0700