Commit Graph

26 Commits

Author SHA1 Message Date
Benedikt Franke
3b33167c87 Rename $rootValue where applicable 2019-07-01 12:12:01 +02:00
spawnia
c069d20ca7 And a few more in tests 2019-06-30 23:09:32 +02:00
spawnia
19a37609f4 Add a few more 2019-06-30 23:08:24 +02:00
Daniel Tschinder
f140149127 Make Types throw instead of returning Utils::undefined() 2018-04-24 15:14:31 +02:00
Daniel Tschinder
27ce24b5fe Fix parsing of default values in build-schema
* Generalizes building a value from an AST, since "scalar" could be misleading, and supporting variable values within custom scalar literals can be valuable.
* Replaces isNullish with isInvalid since `null` is a meaningful value as a result of literal parsing.
* Provide reasonable default version of 'parseLiteral'

ref: 714ee980aa
ref: https://github.com/graphql/graphql-js/pull/903

# Conflicts:
#	src/Utils/BuildSchema.php
#	tests/Utils/BuildSchemaTest.php
2018-02-10 18:45:23 +01: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
8098b2b886 Fixing examples 2017-08-20 02:31:11 +07:00
Vladimir Razuvaev
6845b28a35 Deprecated GraphQL\Type\Definition\Config (#148) 2017-08-14 00:09:02 +07:00
Vladimir Razuvaev
296544089c Moved GraphQL\Utils to GraphQL\Utils\Utils 2017-07-10 19:53:46 +07:00
Vladimir Razuvaev
f668300cd8 Fixed minor bug in blog example (#114) 2017-06-27 20:04:12 +07:00
bertrandgauthier
1adfe21185 Small correction in examples 2017-01-06 12:50:21 +01:00
bertrandgauthier
8df665610b Small correction in examples 2017-01-06 12:46:37 +01:00
vladar
0969073b8a Reverted DefinitionContainer (YAGNI) 2016-11-25 16:54:57 +07:00
vladar
0ab55ec0d9 Replaced "AST" with "Node" in variable names for better readability 2016-11-19 06:47:55 +07:00
vladar
8d696edee5 Renamed AST nodes to *Node to disambiguate types 2016-11-19 06:12:18 +07:00
vladar
ccad34517c Work in progress on better docs (added section on query execution and error handling) 2016-11-08 20:02:10 +07:00
vladar
360bf39c9b Simplified blog example 2016-11-06 21:33:13 +07:00
vladar
eb3f54b98e Better custom scalars in blog example + more comments 2016-11-02 05:10:04 +07:00
vladar
29670b378b Updated blog example: demonstrated and commented inheritance vs composition options; added describing comments 2016-10-24 17:07:52 +07:00
vladar
f9740c5f2c Work in progress on better docs 2016-10-23 22:16:32 +07:00
vladar
221ec6f792 Renamed index.php to graphql.php for consistency in blog example 2016-10-23 18:35:31 +07:00
vladar
5125741899 Several other updates to blog example 2016-10-23 05:30:31 +07:00
vladar
85d2c2cef3 Updated blog example 2016-10-23 05:13:55 +07:00
vladar
d41687913a First official example that should help newcomers to start (incomplete yet, but still useful) 2016-10-21 18:43:11 +07:00