Evans Hauser
8c92c1a7d8
integration-testsuite: add error on AST passed to server as query
2018-05-24 16:38:37 -07:00
David Glasser
8b6b0161d1
Be consistent about where GraphQL queries are parsed
...
runQuery currently takes a `query` argument that is either a string or a
DocumentNode. This means that it's possible to accidentally support syntax we
don't mean to. For example, if you happen to send a JSON-serialized DocumentNode
over the wire, we'll happily execute that, and you'll believe you're using
GraphQL even though you really aren't --- until you try to use some other
GraphQL tool that expects to see the GraphQL query language rather than
graphql-js ASTs.
Additionally, GET requests parse their queries in runHttpQuery rather than
runQuery, leading to inconsistent error handling semantics on parse failures.
Simplify the runQuery API (which is technically exported though intended to be
mostly internal) to take in either a parsedQuery or a queryString argument. The
main use case for knowing about these parameters is if you're using formatParams
with OperationStore; its docs and tests have been updated to reflect this.
Stop parsing queries in runHttpQuery; instead, ensure we throw the right error
for mutations-over-GET by passing the error to throw into runQuery.
Stop accidentally supporting graphql-js ASTs on the wire --- but throw an
informative error when you do so.
This backwards-incompatible change is intended for apollo-server-core 2.0.
2018-05-24 15:47:09 -07:00
Evans Hauser
84e763358e
package.json: remove node and graphql types from root and unnecessary variants
2018-05-21 15:31:57 -07:00
Evans Hauser
aad7c39001
build: update dependencies and remove extra node typings
2018-05-20 03:52:54 -07:00
David Glasser
b32e89c060
v1.3.6
2018-04-24 11:35:14 -07:00
Jesse Rosenberger
9d0e7b6866
v1.3.5
2018-04-18 16:10:04 +03:00
David Glasser
bd2504e04b
v1.3.4
2018-03-28 13:57:11 -07:00
Renovate Bot
273d5349b4
chore(deps): update dependency @types/graphql to v0.12.7
2018-03-28 07:03:40 +00:00
Jesse Rosenberger
19d04ff7f7
v1.3.3
2018-03-26 17:20:44 +03:00
Renovate Bot
a4e2e3e893
chore(deps): update dependency @types/graphql to v0.12.6
2018-03-23 07:02:17 +00:00
renovate[bot]
5eae20e92f
chore(deps): update dependency @types/graphql to v0.12.5 ( #887 )
2018-03-16 14:06:15 +02:00
Renovate Bot
d50b6b6fb2
chore(deps): update dependency graphql to v0.13.1
2018-03-13 16:01:14 +00:00
Sashko Stubailo
281392c3f0
Update to graphql@0.12 ( #726 )
...
* Update peer deps and tests for 0.12
* v1.3.2
2018-03-13 17:10:37 +02:00
Laurin Quast
df51fd90da
Setup prettier ( #724 )
...
* Setup prettier and precommit hooks
* Format code with prettier
* Use husky because it works...
* Move prettier config to .prettierrc file
* Implement fixing markdown file formatting when running lint-fix script
* Format markdown files
* Add .json file formatting
* Fixes json file formatting
* Add pretteir linting step
* Remove tslint
* Use gitignore for prettier
* Fix linting errors
* Ignore submodule folder
2018-01-08 15:08:01 -08:00
Martijn Walraven
6685ecb458
v1.3.1
2017-12-18 07:34:48 +01:00
Renovate Bot
0c439cb35f
chore(deps): update dependency @types/graphql to v0.11.7
2017-12-12 20:31:42 +00:00
Martijn Walraven
9ba34306ed
v1.3.0
2017-12-12 09:45:49 +01:00
Martijn Walraven
3fecfcd321
v1.2.0
2017-10-24 09:14:51 -07:00
Martijn Walraven
65a642506d
v1.2.0-pre.1
2017-10-24 09:09:08 -07:00
Martijn Walraven
f5376afadf
v1.1.7
2017-10-16 07:59:23 -07:00
Martijn Walraven
0cf62cda51
v1.1.6
2017-10-09 21:12:08 +02:00
Martijn Walraven
92eea40203
v1.1.5
2017-10-09 20:34:10 +02:00
Martijn Walraven
9b8e9de2c4
v1.1.4
2017-10-09 20:21:29 +02:00
renovate[bot]
fd7973ff8d
chore(deps): update dependency @types/graphql to v0.11.5
2017-10-06 08:03:31 +00:00
Martijn Walraven
eb6bb7f5dd
v1.1.3
2017-10-05 06:46:38 +02:00
Martijn Walraven
b726f274eb
Add graphql ^0.11.0 to peerDependencies and remove redundant peerDependencies from server packages
...
Fixes #529 .
2017-10-02 13:39:31 +02:00
renovate[bot]
a62d25cbae
chore(deps): update dependency @types/graphql to v0.11.4
2017-09-19 07:31:38 +00:00
renovate[bot]
4e302ef37c
chore(deps): update dependency @types/graphql to v0.11.3
2017-09-12 07:33:13 +00:00
renovate[bot]
4efa1254a4
chore(deps): update dependency @types/graphql to v0.11.1
2017-09-07 07:32:06 +00:00
renovate[bot]
6b0ca0a2e5
chore(deps): update dependency @types/graphql to v0.11.0
2017-09-04 10:29:21 +00:00
renovate[bot]
163a1f007c
refactor(deps): renovate pin dependencies packages
2017-08-24 07:27:02 +00:00
Sashko Stubailo
2dddbc52b6
1.1.2 ( #515 )
...
* 1.1.2
* Add package lock to gitignore
* v1.1.2
* vundefined
2017-08-23 21:34:26 -07:00
Martijn Walraven
a750507fd6
v1.1.0
2017-08-09 21:12:51 +02:00
Martijn Walraven
1b70453939
Remove deprecated supertest-as-promised and replace by regular supertest
2017-08-09 17:35:25 +02:00
Martijn Walraven
20495ada81
Update dependencies
2017-08-09 17:30:13 +02:00
Martijn Walraven
19e365f044
Add tracing support ( #490 )
2017-08-09 16:57:17 +02:00
Mikhail Novikov
c51fc65da8
Add ability to provide default field resolvers ( #482 )
2017-08-02 12:20:10 +02:00
Martijn Walraven
7b8409a3fa
v1.0.5
2017-08-01 20:37:04 +02:00
Martijn Walraven
9b9122f4b9
v1.0.4
2017-07-24 10:22:26 +02:00
Martijn Walraven
90e7eec6b2
v1.0.3
2017-07-24 10:22:07 +02:00
Martijn Walraven
d89a07bc9c
v1.0.2
2017-07-17 16:44:05 -07:00
Martijn Walraven
300c0cd12b
Rename packages from graphql-server- to apollo-server- ( #465 )
2017-07-17 16:29:40 -07:00