Commit Graph

1337 Commits

Author SHA1 Message Date
Pi Delport
f4b21c7a75
Update .gitignore for pytest 3.4+
Pytest 3.4.0 changes the default cache directory from `.cache` to `.pytest_cache`.

Changelog: https://docs.pytest.org/en/latest/changelog.html#pytest-3-4-0-2018-01-30
2018-02-08 01:31:12 +02:00
Pi Delport
368a2a02fe (Fit line length < 120) 2018-02-08 01:26:27 +02:00
Syrus Akbary
c044b2431b
Merge pull request #664 from jkimbo/document-nonnull-list
Add documentation on NonNull lists
2018-02-07 13:58:26 -07:00
Jonathan Kim
e26c0a3717 Add documentation on NonNull lists 2018-02-07 12:06:29 -08:00
Pi Delport
4fa0df401a Fix broken GitHub link tags: 2.0 -> v2.0.0 2018-02-05 16:49:16 +02:00
Syrus Akbary
e94716d94a
Merge pull request #653 from dkleissa/master
Update middleware example to support introspection
2018-01-24 19:25:53 -08:00
Dean Kleissas
035ff7ef88 Update middleware example to support introspection
In the `timing_middleware` example, introspection queries will fail due to `Schema` and others not having `_meta` attributes. API will work and tests pass but introspection will fail, which can be quite confusing to the developer. Simple update makes sure the `root` variable has a `_meta` attribute before accessing it.
2018-01-24 16:48:14 -05:00
Syrus Akbary
a0fc843513
Merge pull request #641 from presencelearning/issue-610-connection-name
Allow ObjectType to set Connection name
2018-01-20 15:37:46 -08:00
Syrus Akbary
8123c4ad8f
Fix relay links. 2018-01-20 15:17:52 -08:00
Syrus Akbary
be1f7d72a4
Merge pull request #644 from frsv/issue-643_fields_capitalizes_incorrectly
Change .title method to .capitalize in to_camel_case() in str_convertes.py
2018-01-11 11:43:10 -08:00
Roman Fursov
9dde259f54 Change .title method to .capitalize in to_camel_case in str_convertes.py 2018-01-10 17:25:15 +03:00
Brian Chapman
a2178dc220 Allow ObjectType to set Connection name 2018-01-08 09:16:02 -08:00
Syrus Akbary
38db32e4f2
Merge pull request #630 from dfee/425-extended
extended support for subclassing with meta to Enum and InputObjectType
2017-12-26 17:50:13 +00:00
Syrus Akbary
25dab925ee
Merge pull request #629 from simonwoerpel/master
Docs: fix typos in code-example for relay nodes
2017-12-23 10:17:31 -08:00
Syrus Akbary
94d5e345a1
Merge pull request #635 from jkimbo/error-missing-type
Raise better error if type is missing from schema
2017-12-23 10:17:06 -08:00
Jonathan Kim
d6968c2e92 Raise better error if type is missing from schema 2017-12-20 18:43:51 +00:00
Devin Fee
a16c5ba00b extended support for subclassing with meta to Enum and InputObjectType 2017-12-16 21:49:23 -08:00
Simon Wörpel
7afeaa052b
Docs: fix typos in example for relay nodes 2017-12-16 00:03:36 +01:00
Syrus Akbary
5036d164b7
Merge pull request #623 from jkimbo/scalar-documentation
[Docs] Scalar documentation
2017-12-10 12:54:54 -08:00
Jonathan Kim
0a6921d2d0 Add extra documentation on base scalars 2017-12-10 16:07:48 +01:00
Jonathan Kim
76f8a35916 Add documentation for scalar type arguments 2017-12-10 15:53:28 +01:00
Syrus Akbary
92f6a496c5
Merge pull request #622 from jkimbo/docs-middleware-update
[Docs] Functional middleware example
2017-12-09 17:41:48 -08:00
Jonathan Kim
502597c5a4 Format duration 2017-12-08 15:03:20 +00:00
Jonathan Kim
27745078bc Document functional middleware 2017-12-08 14:58:03 +00:00
Syrus Akbary
6c92e25ae8
Merge pull request #615 from Prince-Leto/patch-1
Added Date scalar to documentation
2017-12-01 12:14:15 -08:00
Grégoire Chauvet
98366c6add
Added Date scalar to documentation 2017-11-29 14:32:17 +01:00
Syrus Akbary
375d1f494b
Merge pull request #606 from g--/patch-1
Relay documentation reflects api changes in 2.0
2017-11-26 17:48:43 -08:00
Syrus Akbary
e19e229710
Merge pull request #611 from danpalmer/patch-1
Use more Pythonic terminology here
2017-11-25 15:27:08 -08:00
Dan Palmer
834d52f9d3
Use more Pythonic terminology here
"Hash" in the Python world implies a cryptographic hash, or possibly a checksum. Here, I believe "hash" is being used to mean "hash map", which would be more commonly known in Python as a dictionary, or dict for short.
2017-11-25 12:51:53 +00:00
Geoff
ec32c252e7
Relay documentation reflects api changes in 2.0
Specifically, get_node_from_global_id.
2017-11-20 10:05:28 -05:00
Syrus Akbary
e71a52140a
Update __init__.py 2017-11-14 23:25:30 -08:00
Syrus Akbary
eb5108f81e Simplified inputobjecttype implementation+tests 2017-11-14 22:19:22 -08:00
Syrus Akbary
6dd9e5ff1f Merge branch 'master' into input-fixes 2017-11-14 22:08:56 -08:00
Syrus Akbary
f6697188ee Added tests for nested inputobjecttypes 2017-11-14 22:06:28 -08:00
Syrus Akbary
0fc7280154
Merge pull request #602 from freundallein/docs-unions-fix
fix unions.rst
2017-11-14 09:12:26 -08:00
Stan Zhavoronkov
3412dba31f
fix Unions.rst
fix Unions.rst docs (copy-paste sentence from interfaces.rst).
2017-11-14 13:04:47 +03:00
Nathaniel Parrish
b2151d62da Code cleanup 2017-11-07 09:10:41 -08:00
Nathaniel Parrish
9c27db7ed5 Handle complex input types 2017-11-07 09:06:36 -08:00
Nathaniel Parrish
b5abccb1dc Set all fields on input object types 2017-11-03 16:36:36 -07:00
Syrus Akbary
71d5b1d943
Merge pull request #587 from ekampf/feature/enum_docs_update
Improved docs for Enums
2017-11-02 22:00:23 -07:00
Syrus Akbary
3fe12ca611
Merge pull request #588 from ekampf/feature/doc_fix_middleware
Fix resolve arguments section according to 2.0 resolvers
2017-11-02 22:00:06 -07:00
Syrus Akbary
3ee94131ae Improved object container initialization. Fixed #585 2017-11-02 21:57:10 -07:00
Syrus Akbary
045d5fffbe Added Date type in datetime 2017-11-02 21:17:06 -07:00
Syrus Akbary
43cda1d46a Added extra test to objecttypes 2017-11-02 21:07:10 -07:00
Eran Kampf
1555c988e0 Fix resolve arguments section according to 2.0 resolvers 2017-10-30 14:31:20 -07:00
Eran Kampf
7f59a8fa7e Added docs 2017-10-30 13:05:02 -07:00
Syrus Akbary
f79eb57c06
Merge pull request #586 from ekampf/feature/enum_value_descriptions
Support from_enum description lambda
2017-10-30 11:18:42 -07:00
Eran Kampf
90272e5297 Increase test coverage 2017-10-30 10:31:13 -07:00
Eran Kampf
e1f8480b32 lint fix 2017-10-30 10:26:42 -07:00
Eran Kampf
16c80c173e Support from_enum description lambda 2017-10-30 10:24:36 -07:00