Vladimir Razuvaev
eaadae4a5b
Merge pull request #187 from gabidj/patch-1
...
Fixed minor bug in example
2017-10-19 12:02:46 +07:00
Gabi DJ
9b449745ab
Update graphql.php
2017-10-18 16:34:14 +03:00
Gabi DJ
7f54b1f7e3
removed redundant code and comments
...
removed redundant code and comments from PR
2017-10-18 16:32:43 +03:00
Gabi DJ
cf3ca86246
$data
Unsupported operand types error fix
...
the operator `+=` only works like `array_merge ($left, $right) ;` if both variables are arrays
2017-10-17 16:47:26 +03:00
Vladimir Razuvaev
57f5ee3783
Fixed typo in docs, see #185
2017-10-16 23:06:21 +07:00
Vladimir Razuvaev
b17b1c3336
Merge remote-tracking branch 'origin/master'
2017-10-14 00:45:55 +07:00
Vladimir Razuvaev
1487741f37
Preserve description for custom scalars ( #181 )
2017-10-14 00:45:23 +07:00
Vladimir Razuvaev
0c3a657800
Merge pull request #177 from GabrielDeveloper/develop
...
Improve test coverage
2017-10-05 19:58:23 +07:00
Gabriel Goncalves
440d38d3bc
Creating test to Language\Token
2017-10-04 12:06:25 -03:00
Vladimir Razuvaev
fb0ca607e2
Fixed a mistake in the type language documentation ( #176 )
2017-09-29 20:07:36 +07:00
Vladimir Razuvaev
cb40e111a3
v0.11.1
2017-09-22 23:16:34 +07:00
Vladimir Razuvaev
f7248dec76
Ability to override internal types (using types
option of Schema class) #174
2017-09-22 23:08:51 +07:00
Vladimir Razuvaev
d46ad09108
v0.11.0
2017-09-20 19:50:23 +07:00
Vladimir Razuvaev
c5efd1d65b
Additional checks for possible fragment spreads
2017-09-20 19:06:04 +07:00
Vladimir Razuvaev
1e34982bda
Additional tests for variable coercion + use printSafeJson vs printSafe for input variables
2017-09-20 18:40:45 +07:00
Vladimir Razuvaev
a1e06b2e61
Account for query offset in files for errors
2017-09-20 18:36:19 +07:00
Vladimir Razuvaev
6050af4e67
Add support for directives applied on IDL & Schema
2017-09-20 17:43:06 +07:00
Vladimir Razuvaev
39f378ece7
Fixed type in tests: Testcase -> TestCase
2017-09-20 17:03:22 +07:00
Vladimir Razuvaev
5f5c8118c0
Fixed parseValue
of StringType and IDType: (it should return null on invalid value, not throw)
2017-09-20 16:38:02 +07:00
Vladimir Razuvaev
2023b427ae
Fixed failed integer test (only fails on some OSs and PHP versions)
2017-09-20 16:20:51 +07:00
Vladimir Razuvaev
c97438cd7d
Merge branch 'master' of https://github.com/webonyx/graphql-php
2017-09-20 16:16:38 +07:00
Vladimir Razuvaev
537dbabe8f
Merge pull request #171 from dereklavigne18/query_variable_coercion
...
Update query variable coercion to meet the rules outlined in the specification.
2017-09-20 15:57:29 +07:00
Derek Lavigne
d22385cc93
Update query variable coercion to meet the rules outlined in the
...
specification.
The framework currently coerces query variables similar to the way it
treats output values, which means it attempts to coerce the value into
the field's corresponding data type regardless of the received value.
According to items 3f and 3g in section 6.1.2
(http://facebook.github.io/graphql/#sec-Validating-Requests ) of
Facebook's GraphQL specification query variables should be coerced
according to their type's input coercion rules laid out in section
3.1.1 (http://facebook.github.io/graphql/#sec-Scalars ). If the value
can not be coerced into the correct type according the the input
coercion rules for the type a query error should be thrown. This
ensures that client provided query variables were of the correct format
and will be a valid format and type by the time they are passed into an
implementing resolver.
This patch fixes the above issue by updating the way query variables
are sanitized during the process of parsing the query. It directly
follows the rules for scalar input coercion laid out by the
specification and throws query errors when a value that cannot be
coerced to the correct type is given. Tests for isValidPHPValue will
also be updated to ensure that it is doing the correct type checks on
Values::isValidPHPValue for the given type and value provided. A new
test case will also be added to test Values::getVariableValues and make
sure it is also enforcing the scalar input coercion rules and throwing
errors for invalid values.
2017-09-18 12:14:09 -04:00
Vladimir Razuvaev
79ebc54538
Minor docs improvements
2017-09-05 15:29:46 +07:00
Vladimir Razuvaev
7cc863df37
v0.10.2
2017-08-30 23:33:58 +07:00
Vladimir Razuvaev
6ff427d241
Server: do not raise an error when variables are passed as empty string ( #156 )
2017-08-30 23:26:45 +07:00
Vladimir Razuvaev
46477c75c4
Added entry about graphql.org in the README + minor README tweaks
2017-08-22 17:24:17 +07:00
Vladimir Razuvaev
524a01a3a4
Fixed typos and mistakes in README
2017-08-22 17:11:48 +07:00
Vladimir Razuvaev
2ccc631ff3
Added CONTRIBUTING.md and updated README.md
2017-08-22 17:05:54 +07:00
Vladimir Razuvaev
1eb2ccac76
v0.10.1
2017-08-21 01:27:58 +07:00
Vladimir Razuvaev
d95fb461ee
Server: fixed constructor screwed during rebasing + restored tests for the server
2017-08-21 01:18:23 +07:00
Vladimir Razuvaev
a1652468f0
Fixed minor error in docblock comment
2017-08-21 00:19:07 +07:00
Vladimir Razuvaev
df1b575469
Changed CHANGELOG documentation links to documentation site
2017-08-20 23:25:48 +07:00
Vladimir Razuvaev
6fdcfd9bb0
Merge branch 'master' of https://github.com/webonyx/graphql-php into v0.10
2017-08-20 23:16:51 +07:00
Vladimir Razuvaev
cbc744ea08
Added entries about deprecation of old server and type resolution strategies to UPGRADE.md document
2017-08-20 23:16:23 +07:00
Vladimir Razuvaev
1f68909eb0
Added CHANGELOG document
2017-08-20 23:15:22 +07:00
Vladimir Razuvaev
a3b6974249
Added entry in docs about schema config class
2017-08-20 22:59:40 +07:00
Vladimir Razuvaev
90602b31ba
Added link to docs for generic error about unique type instance ( #149 )
2017-08-20 22:28:17 +07:00
Vladimir Razuvaev
7f346d5658
Documentation improvements
2017-08-20 22:10:37 +07:00
Vladimir Razuvaev
de791536ce
Docblocks improvements
2017-08-20 22:10:13 +07:00
Vladimir Razuvaev
d5e3d08d85
Minor Executor tweaks
2017-08-20 20:09:55 +07:00
Vladimir Razuvaev
085516bdda
Moved GraphQL\Language\AST\Node::fromArray
to GraphQL\Utils\AST::fromArray
2017-08-20 19:50:44 +07:00
Vladimir Razuvaev
bd444752f8
Documentation and docblock improvements
2017-08-20 16:00:44 +07:00
Vladimir Razuvaev
199caf3080
New example for server usage
2017-08-20 02:33:16 +07:00
Vladimir Razuvaev
71343f2f62
Server: Extracted method for emitting response
2017-08-20 02:32:50 +07:00
Vladimir Razuvaev
8098b2b886
Fixing examples
2017-08-20 02:31:11 +07:00
Vladimir Razuvaev
009cdecb94
Reference docs generated from docblocks
2017-08-19 23:02:34 +07:00
Vladimir Razuvaev
1b4f983f3f
Improved docblock comments (suitable for reference docs generation)
2017-08-19 23:01:46 +07:00
Vladimir Razuvaev
3ef2d2827b
Added psr/http-message as a dev dependency to ensure that unit tests run without additional deps installation steps
2017-08-19 22:58:44 +07:00
Vladimir Razuvaev
0af1fb2793
Reference docs generator
2017-08-19 22:57:26 +07:00