Commit Graph

688 Commits

Author SHA1 Message Date
Vladimir Razuvaev
827bfa7907 Server: added missing return $this; statements 2017-02-27 18:19:09 +07:00
Vladimir Razuvaev
752668df8d Removed phpbench from composer to satisfy PHP5.4 requirement 2017-02-25 02:55:52 +07:00
Vladimir Razuvaev
66acb73a47 Added first meaningful benchmarks to have some grounds for future performance optimizations 2017-02-25 02:32:11 +07:00
Vladimir Razuvaev
34ca931533 Sanity check to ensure that GraphQL query is string 2017-02-24 17:14:30 +07:00
Vladimir Razuvaev
3f909e3e11 Separate utility for extractTypes 2017-02-24 16:29:28 +07:00
Vladimir Razuvaev
416733b4db Separate utility for extractTypes 2017-02-24 16:22:33 +07:00
Vladimir Razuvaev
dd4acfd3b6 Merge pull request #92 from webmozart/sync-promise-adapter-indices
Fixed SyncPromiseAdapter::all() to not change the order of arrays
2017-02-24 01:06:35 +07:00
Bernhard Schussek
e35b57601d Fixed SyncPromiseAdapter::all() to not change the order of arrays 2017-02-23 11:45:13 +01:00
Vladimir Razuvaev
ed41a4ce43 Merge pull request #91 from petecoop/build-schema
Build Schema & Schema Printer
2017-02-21 15:25:14 +07:00
petecoop
664af3d44a use constants 2017-02-20 10:31:11 +00:00
petecoop
fc629a292d BuildSchema and SchemaPrinter 2017-02-19 19:26:56 +00:00
Vladimir Razuvaev
0bd7c9d405 Merge pull request #89 from aldumas/assign_fix
Fixed Utils::assign() bug relating to detecting missing required keys
2017-02-14 02:51:33 +07:00
Adam Dumas
97674cbbb9 Fixed Utils::assign() bug relating to detecting missing required keys 2017-02-13 12:50:34 -05:00
Vladimir Razuvaev
c2f0749d8e Merge pull request #88 from jane-olszewska/schema-description-in-comments
Schema Definition Language: element descriptions can be set through comments
2017-02-07 13:01:36 +07:00
jane-olszewska
008fd20498 Added test for adding a schema element description in comments 2017-02-06 19:11:12 +00:00
jane-olszewska
060dc51595 Set schema element description to strings retrieved from a continuous chunk of comment tokens immediately preceding the element 2017-02-06 18:33:21 +00:00
jane-olszewska
dd31ab2b80 Added a description field to schema type definition classes 2017-02-06 18:33:18 +00:00
jane-olszewska
bbb5cf1e4d Fixed comment token extraction: will no longer read one character from the next line 2017-02-06 18:13:43 +00:00
vladar
c18cd16960 GraphQL\Server: set PromiseAdapter before executing query 2017-01-26 19:24:53 +07:00
vladar
d10e933a00 Merge branch 'master' of https://github.com/webonyx/graphql-php 2017-01-26 19:18:40 +07:00
vladar
c545474715 Fixed DocBlock comment 2017-01-26 19:00:10 +07:00
vladar
2ddae2bf88 Added EXPERIMENTAL note for code related to type resolution strategies 2017-01-26 18:59:14 +07:00
vladar
b4e6630c1d PHPUnit: Replaced deprecated method getMock() with getMockBuilder() 2017-01-26 18:48:23 +07:00
Vladimir Razuvaev
81d28f767a Merge pull request #86 from danez/patch-1
Fix typo in DocBlock
2017-01-26 17:57:06 +07:00
Daniel Tschinder
1ff9c429d6 Fix typo in DocBlock 2017-01-26 11:18:53 +01:00
vladar
fa9611738d v0.9.0 2017-01-19 19:28:41 +07:00
vladar
e2875953e1 Tests for new GraphQL\Server facade 2017-01-19 19:23:00 +07:00
vladar
8e75cc3d60 Merge branch 'master' of https://github.com/webonyx/graphql-php 2017-01-19 11:55:10 +07:00
Vladimir Razuvaev
ddea764ff5 Merge pull request #84 from OwlyCode/php7-errors-handling
Added compatibility with php7 error handling
2017-01-14 12:31:02 +07:00
OwlyCode
d022b19b4e Added compatibility with php7 error handling. 2017-01-12 17:18:25 +01:00
Vladimir Razuvaev
5be0944453 Merge pull request #83 from bertrandgauthier/master
Small correction in examples
2017-01-06 22:57:41 +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
ceaf798b07 Merge branch 'master' of https://github.com/webonyx/graphql-php 2016-12-23 22:42:05 +07:00
Vladimir Razuvaev
595ae52e85 Merge pull request #80 from lordthorzonus/nested-async-queries-mess-the-indexes-of-arrays
Nested async queries messes up the order of keys in arrays producing unwanted responses
2016-12-23 15:29:43 +07:00
Juuso Leinonen
8626e0b45d Make tests run on php 5.4 2016-12-22 15:35:38 +02:00
Juuso Leinonen
e3a864f071 Make travis run also the ReactPromiseAdapter tests 2016-12-22 15:24:47 +02:00
Juuso Leinonen
90c4b5d9fa Changed ReactPromiseAdapter::all to preserve the array key order and added tests 2016-12-22 15:08:28 +02:00
vladar
296cc7530d Added Server class as a new facade for library, including HTTP endpoint compatible with express-graphql format 2016-12-19 20:40:46 +07:00
vladar
ff3a40d329 Execution: modified deferred behavior to be more predictable (+added more tests for them) 2016-12-17 05:14:51 +07:00
vladar
9826f9a1f3 Docs: fixed version name 9.0 -> 0.9.0 2016-12-15 19:27:43 +07:00
vladar
9e8e77a071 Execution: Calling resolve function directly (vs calling it via call_user_func) 2016-12-15 15:34:27 +07:00
vladar
0483560ee5 Fixed wrong "current version" number in docs 2016-12-14 20:34:48 +07:00
vladar
c7688c9249 Added "since" entry to docs for N+1 problem and async support 2016-12-14 20:22:38 +07:00
vladar
8e39b3d88d Added entry on data fetching to docs 2016-12-14 20:19:12 +07:00
vladar
078a1efd50 Added GraphQL\GraphQL::setDefaultFieldResolver() 2016-12-14 20:18:10 +07:00
vladar
2043cc7e75 Introduced type resolution strategies: eager and lazy (for #69) 2016-12-14 17:12:09 +07:00
vladar
97f9c1c201 Added deprecated.php to PHPUnit exclude list 2016-12-08 06:06:17 +07:00
vladar
ae57a72461 Deleted unused SchemaValidator 2016-12-08 06:05:40 +07:00
vladar
90e29ac704 Fixing tests for HHVM 2016-12-08 04:50:33 +07:00