Simon Podlipsky
7ba98ce773
Fix CS in src/Server
2018-10-05 10:47:57 +02:00
Jeremiah VALERIE
d8f41e854f
Add static analysis tool
2018-09-02 17:19:15 +02:00
Simon Podlipsky
76e1c33b68
Fix CS in src
2018-09-02 10:39:03 +02:00
Simon Podlipsky
4c327a6c16
Fix CS in Validator folder
2018-08-08 10:44:05 +02:00
Simon Podlipsky
ec2ff0d4bf
CS /Server
2018-07-10 01:34:35 +03:00
Vladimir Razuvaev
e515964a73
Merge pull request #295 from simPod/refactoring
...
Executor: fixed code style / minor refactoring
2018-07-07 21:58:54 +07:00
Iain Mckay
750ce383ec
Adds support for the multipart/form-data content type
2018-07-05 08:52:29 +02:00
Simon Podlipsky
cd1cc911e7
Refactoring
2018-06-26 14:37:19 +02:00
Chris Muthig
8aa6dc17a5
Parse operation name from operationName instead of operation
2018-03-03 15:41:55 -08:00
Jiri Pokorny
dca2091351
Fix content-type header match when parsing PSR request.
2018-01-21 21:02:43 +01:00
Vladimir Razuvaev
4f223ba11d
Fixed PSR request parsing, broken after recent changes
2018-01-13 18:08:07 +07:00
Adrien Crivelli
178b179db3
Drop support non pre-parsed PSR-7 request body
...
This revert #202 (commit 9d37f4c
) because trying to parse PSR-7 request
was a mistake. The whole point of PSR-7 is to allow for interoperability
and be able to use specialized libs for body parsing (amongst many other
things). Trying to parse ourselves would be opening a can of worm if/when
other content types have to be supported. It is more correct and future
safe to require that the body is parsed before being passed to GraphQL.
2017-12-21 15:01:57 +09:00
Vladimir Razuvaev
0af2fe79f2
StandardServer: a bit more validation for parsed json PSR-7 request (related to #202 )
2017-11-28 12:28:54 +07:00
Adrien Crivelli
11c9429fab
Support non pre-parsed PSR-7 request body
...
Because PSR-7 specification only specify that `getParsedBody()` **may**
return the parsed body for `application/json`, we cannot assume that it
is always the case. So if the value returned parsed body is an empty array,
it means we should try to parse it ourselves (`null` would mean no body at
all according to spec).
With this modification we try to used given parsed body, but fallback on
trying to parse the body if necessary. This leave the door open to custom
implementation of parsing if needed, while making it easier to use out of
the box.
2017-11-26 19:57:32 +09: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
d95fb461ee
Server: fixed constructor screwed during rebasing + restored tests for the server
2017-08-21 01:18:23 +07:00
Vladimir Razuvaev
bd444752f8
Documentation and docblock improvements
2017-08-20 16:00:44 +07:00
Vladimir Razuvaev
71343f2f62
Server: Extracted method for emitting response
2017-08-20 02:32:50 +07:00
Vladimir Razuvaev
1b4f983f3f
Improved docblock comments (suitable for reference docs generation)
2017-08-19 23:01:46 +07:00
Vladimir Razuvaev
83cc9132a0
Server: minor improvements
2017-08-18 02:54:35 +07:00
Vladimir Razuvaev
d578b8a22f
Split sync and async facade methods
2017-08-18 01:49:10 +07:00
Vladimir Razuvaev
03629c1e3c
Refactored error formatting (debugging part)
2017-08-17 18:49:17 +07:00
Vladimir Razuvaev
1ee226465b
Server: added missing error message
2017-08-16 19:22:45 +07:00
Vladimir Razuvaev
3971001f6d
Server: additional tests + related fixes
2017-08-15 20:59:48 +07:00
Vladimir Razuvaev
828c6b0fc3
Server: disable query batching by default; allow array as server config
2017-08-15 18:05:09 +07:00
Vladimir Razuvaev
d3580e959e
Moved Schema to GraphQL\Type namespace (but preserved BC)
2017-08-12 21:40:03 +07:00
Vladimir Razuvaev
f911fac7b1
Default error reporting now includes "category" key for every error
2017-08-08 02:02:07 +07:00
Vladimir Razuvaev
6a20483b87
Server: Ability to use thunk for root value and context
2017-07-27 20:11:45 +07:00
Vladimir Razuvaev
3e6f2c9e83
Fixed minor bugs
2017-07-25 19:26:41 +07:00
Vladimir Razuvaev
e04d3300a7
Server: send result for regular responses + prepare response for PSR7 request
2017-07-21 22:11:20 +07:00
Vladimir Razuvaev
b2ec265d4f
Server: ability to execute PSR7 request
2017-07-19 23:35:22 +07:00
Vladimir Razuvaev
81986145fe
Server: moving things around to simplify
2017-07-19 19:55:22 +07:00
Vladimir Razuvaev
e6e531b88b
Server: throw only when there is a configuration or logic error (invariant violation)
2017-07-19 19:30:39 +07:00
Vladimir Razuvaev
49208d758d
Server: use proper batching helper
2017-07-17 23:48:30 +07:00
Vladimir Razuvaev
919cf80240
Server: batched queries with shared deferreds (promises) #105
2017-07-17 20:31:26 +07:00
Vladimir Razuvaev
0e2ac57515
Split HTTP server execution to canonical replaceable steps: parsing, validation, execution with separate tests for each step
2017-07-17 16:57:30 +07:00
Vladimir Razuvaev
f8c3195e54
Granular methods for HTTP request parsing + tests
2017-07-16 19:04:58 +07:00
Vladimir Razuvaev
794d3672ef
Initial pass on standard server implementation (also deprecated current GraphQL\Server which is undocumented anyway)
2017-07-14 19:44:18 +07:00