Commit Graph

17 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
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
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
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