Commit Graph

1707 Commits

Author SHA1 Message Date
Jonathan Kim
a9625dac0e
Update requirement for Query type in mutation docs (#1213) 2020-06-24 19:22:22 -07:00
Jonathan Kim
a1fc3688aa
Remove to_const function (#1212) 2020-06-24 19:21:40 -07:00
Jonathan Kim
4b70186031
Remove @staticmethod decorator in mutations doc (#1206) 2020-06-24 19:18:59 -07:00
Christoph Zwerschke
47c63f3dd7
Fix DateTime Scalar parse_literal methods (#1199) (#1200) 2020-06-04 21:30:23 -07:00
dbgb
966aba06cd
Fix typo in quickstart document (#1201) 2020-05-28 15:41:38 +02:00
Jonathan Kim
b0c8a17ec7
Fix issue with trailing whitespace (#1197) 2020-05-19 22:12:41 -07:00
Jonathan Kim
9b756bf12c
Delete CODEOWNERS 2020-05-09 13:32:52 +01:00
Jonathan Kim
d6acfc6eae
Create config.yml 2020-05-09 13:32:38 +01:00
Jonathan Kim
0723dd1d6c Update issue templates 2020-05-09 13:31:55 +01:00
Jonathan Kim
df67e69129
v3.0b2 2020-05-09 13:04:05 +01:00
Kevin Harvey
396b278aff
Fix typos (#1192) 2020-04-29 13:38:56 +01:00
Jonathan Kim
380166989d Update dataloader docs 2020-04-26 13:22:09 +01:00
Jonathan Kim
3e4305259b Add basic test for aiodataloader 2020-04-26 13:17:00 +01:00
Jonathan Kim
a0b522fa39 Add aiodataloader to test deps 2020-04-26 13:16:51 +01:00
Jonathan Kim
12ec8dc007
Don't exclude tests from distribution 2020-04-26 11:44:16 +01:00
Radosław Kowalski
133a831ab9
Update excluded packages list to properly exclude examples pack… (#1187)
* examples package will not be installed with graphene
2020-04-17 13:27:22 +01:00
Kimball Leavitt
7a1e9d7798
added graphene import to READMEs (#1183)
it's nice to just be able to copy/paste the entire example without
having to remember the import
2020-04-14 10:25:10 +01:00
Syrus Akbary
49fcf9f2e6
Allow fast ObjectType creation based on dataclasses (#1157)
* Allow fast ObjectType creation based on dataclasses

* Fixed Python 3.8 integration

* Added repr and eq methods to ObjectType containers

* Reformatted code

* Fixed mypy issue

* Removed unused __init__ for ObjectType containers

* Use black in dataclasses

* Use latest black verison on precommit
2020-04-12 17:45:46 -07:00
rrueth
37d6eaea46
Fix resolve method parameters bullet list (#1178)
The current documentation shows all of the resolve parameters on a single line as opposed to the bullet list that was intended.
2020-04-12 12:19:56 +01:00
sduthil
871c60cf46
Docs: integrations: fix FastAPI link (#1177) 2020-04-09 19:21:04 +01:00
Jonathan Kim
0051f82b5f
v3.0.0b1 2020-04-06 09:36:53 +01:00
Jonathan Kim
a2fe8dd704
Add note about the use of args (#1170)
* Add note about the use of `args`

Closes #1037

* Some improvements

* Link to correct place
2020-04-02 19:55:00 +01:00
Jonathan Kim
9fdab033a7
Add exempt labels 2020-04-01 16:24:23 +01:00
Jonathan Kim
cb3bfe011f
Use default_resolver to resolve values when using the source at… (#1155) 2020-03-16 16:20:04 +00:00
Jonathan Kim
6f2863ef6e
Add some more tests for Interface (#1154) 2020-03-16 16:19:44 +00:00
Jonathan Kim
00e36b52d5
Remove unused function (#1160) 2020-03-16 15:51:07 +00:00
Oleh Kuchuk
f9efe15973
Fixed examples, make root object explicit inside resolvers and… (#1159) 2020-03-15 18:52:56 +00:00
Syrus Akbary
60a9609b9a
Updated all str.format(…) to f-strings (#1158)
* Updated all str.format(…) to f-strings

This revamps the PR #984

* Pass black

* Fix flake8

* Updated objecttype

* Fix black version
2020-03-14 17:32:44 -07:00
Syrus Akbary
14183012a8
Remove subclass polyfill (#1156)
The subclass polyfill was only needed for Python 2.7-3.5

Python 3.6 introduced the __init_subclass__, so since Graphene now requires Python 3.6+, this is no longer needed.

https://www.python.org/dev/peps/pep-0487/
2020-03-14 20:19:28 +00:00
Rob Blackbourn
1cf303a27b
Added support for subscription (#1107)
* Added support for subscription

* Added pre-commit hooks for black and formatted changed files

* Checked with flake8

* Integrated changes from master.

Co-authored-by: Rob Blackbourn <rblackbourn@bhdgsystematic.com>
Co-authored-by: Rob Blackbourn <rtb@beast.jetblack.net>
2020-03-14 16:48:12 +00:00
Christoph Zwerschke
88f79b2850 Fix types in Schema docstring (#1100) 2020-03-04 15:26:09 +01:00
Christoph Zwerschke
5d97c848e0 Remove misleading comment
The comment originally referred to the __metaclass__ attribute which is gone now.
2020-03-04 12:44:53 +01:00
Christoph Zwerschke
5e6f68957e Use latest graphql-core 3.1.0b1 instead of 3.0.3
Adapt Schema, because there is no type reducer in core 3.1 any more.
2020-03-04 12:23:40 +01:00
Christoph Zwerschke
ffb7701466 Create another alpha release 2020-03-04 11:37:00 +01:00
Christoph Zwerschke
796880fc5c Update dependencies 2020-03-04 11:24:42 +01:00
Jonathan Kim
98e10f0db8
Replace INVALID with Undefined (#1146) 2020-02-27 20:51:59 +00:00
Jayden Windle
ac98be7836
Use Undefined instead of the now deprecated INVALID (#1143) 2020-02-26 21:18:13 +01:00
Lem Ko
ba5b7dd3d7
Fix example query in quickstart doc (#1139) 2020-02-21 11:15:51 +00:00
정유석
be97a369f7
fix typo in class 'Interface' (#1135) 2020-02-18 08:53:48 +00:00
David Sanders
03bd6984dd
fix example middleware class in docs (#1134) 2020-02-10 14:17:16 -08:00
James
23bb52a770
Add a helpful message to when a global_id fails to parse. (#1074)
* Add a helpful message to when a global_id fails to parse.

* Update test_node to have errors on test_node_query_incorrect_id

* Black the node.py file

* Remove func wrapper used in debugging get_resolver partial

* Update node.py

* Expand error messages

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-10 14:16:11 -08:00
Jean-Louis Fuchs
ad0b3a529c
The default_value of InputField should be INVALID (#1111)
* The default_value of InputField should be INVALID

Since GraphQL 3.0 there is a distinction between None and INVALID (no value).
The tests captured the bug and are updated.

* Update minimum graphql-core version

* Use Undefined instead of INVALID

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-02-08 20:24:58 +00:00
Henry Baldursson
9a19447213 Use unidecode to handle unicode characters in constant names (#1080) 2020-02-08 09:21:25 -08:00
Jonathan Kim
55a03ba716
Update readme (#1130)
* Add slack link and dev notice to the README

* Fix formatting

* Update formatting

* Add notice to documentation
2020-01-30 08:17:12 -08:00
Jonathan Kim
f82b811377
Fix example code (#1120) 2020-01-30 12:18:00 +00:00
Jonathan Kim
bd6d8d086d
Fix tests (#1119)
* Fix tests

* Add extra folders to make test command

* Update snapshots

* Add python 3.8 to test matrix

* Add black command to makefile and black dependency to setup.py

* Add lint command

* Run format

* Remove 3.8 from test matrix

* Add Python 3.8 to test matrix

* Update setup.py
2019-12-31 14:08:30 +00:00
Tom Paoletti
81d61f82c5 Fix objecttypes DefaultResolver example (#1087) (#1088)
* Create namedtuple as expected
* Access result.data instead of result['data']
* Refer to field with camel-case name
2019-12-26 20:05:14 +00:00
Jonathan Kim
482c7fcc65
Add file uploading docs (#1084) 2019-12-26 20:02:57 +00:00
Iman
c0fbcba97a Update quickstart.rst (#1090)
A miss letter
2019-12-26 20:02:28 +00:00
Yu Mochizuki
e31b93d1fd Increase the allowed version of aniso8601 (#1072) 2019-12-26 11:27:55 +00:00