Commit Graph

45 Commits

Author SHA1 Message Date
Aryan Iyappan
1d6f9e984b
Mame sure to pass correct graphql schema instance 2021-09-29 18:13:08 +05:30
Aryan Iyappan
c1bd25555c
Update queryvalidation.rst 2021-09-28 06:41:54 +05:30
Aryan Iyappan
4e32dac251 add tests and docs for disable introspection rule 2021-08-14 08:41:24 +05:30
Aryan Iyappan
ec982ac50b update docs typo 2021-08-14 08:22:04 +05:30
Aryan Iyappan
c68071952d mention how to implement custom validators 2021-08-14 08:20:46 +05:30
Aryan Iyappan
ac5dd90f5f fix typo in docs 2021-08-14 07:54:58 +05:30
Aryan Iyappan
7be4bd6bc6 update docs 2021-08-14 07:49:09 +05:30
Aryan Iyappan
d7b474751d add depth limit validator tests 2021-08-14 07:45:34 +05:30
Aryan Iyappan
a784ef15e5 add disable introspection 2021-08-13 20:24:53 +05:30
Aryan Iyappan
5977b1648c fix typo 2021-08-13 20:04:42 +05:30
Aryan Iyappan
4259502dc3 update docs 2021-08-13 20:02:20 +05:30
Aryan Iyappan
aa11681048 add depth limit validator 2021-08-13 18:22:12 +05:30
kevinr-electric
485b1ed325
fix field name in execute.rst example (#1327)
fix field name in execute.rst 'Operation Name' example
2021-04-22 20:28:05 -07:00
Daniel T. Plop
6918db1033
Fix Typo in Docs (#1252)
The example of executing a query by passing a root value had a typo for
the trailing parenthesis, namely it was '}' instead of ')'.
2020-08-12 14:44:00 -07:00
Jonathan Kim
86b904d327
Split out the subscriptions documentation a separate file and fix it (#1245) 2020-08-07 14:37:32 -07: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
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
David Sanders
03bd6984dd
fix example middleware class in docs (#1134) 2020-02-10 14:17:16 -08:00
Jonathan Kim
482c7fcc65
Add file uploading docs (#1084) 2019-12-26 20:02:57 +00:00
TheMelter
abc2c2a784 Fix typo in execute.rst (#1115) 2019-12-19 23:02:45 -08:00
David Anderson
5cb7d91aaa Revise documentation (#969)
* Revise documentation

- Add missing reference to `flask-graphql` in integrations
- align documentation for resolver arguments (use root for 1st argument
instead of self)
- explore use of `parent` instead of `root` for first argument
- clarify resolvers and object type documentation
- add documentation for Meta class options for ObjectType
- expand quickstart documentation for first time users
- streamline order of documentation for first time users (broad ->
specific)
- document resolver quirks

* explict imports from graphene

* rename doc refs for resolvers

* suggestions typos and graphene import
2019-06-09 16:49:56 -07:00
Ganesh Pandey
daf0d17647 fix type on docs (#939) 2019-04-09 11:29:40 -07:00
Eran Kampf
582ac59bf7 Another docs test 2019-04-08 12:36:35 -07:00
Eran Kampf
28f6b18f55 Small formatting fix to test docs integration 2019-04-08 12:33:29 -07:00
Jonathan Kim
c5b2281e22 Update execution doc with correct way to use variables (#920)
* Fix issue #890

* Change to `root`
2019-03-27 16:44:41 -07:00
Jonathan Kim
a4681ce6b2
Fixes middleware documentation (#916)
Closes #812
2019-03-10 16:21:08 +01:00
Elias Tandel Barrionovo
21dbaa93c4 Improve dataloader doc
Explicitly mention that loaded values must have the same order as the
given keys
2018-10-23 10:05:47 -03:00
Adam Johnson
7dd8305bdf Change deprecated execute() arguments to new ones
Changed in https://github.com/graphql-python/graphql-core/pull/185 , the docs here were out of date, as were the tests.
2018-08-29 12:35:44 +03:00
Dan
034b5385a5 Add isort precommit hook & run on all files (#743)
* Add isort and seed-isort-config pre-commit hook

* Fix erroneous isort moving comment to the top of file
2018-05-28 19:18:54 +01: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
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
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
Eran Kampf
1555c988e0 Fix resolve arguments section according to 2.0 resolvers 2017-10-30 14:31:20 -07:00
Syrus Akbary
0002d42e38 Updated docs 2017-07-27 03:05:58 -07:00
Syrus Akbary
e6b0cbb3bc Merge branch 'master' into 2.0 2017-07-26 22:46:26 -07:00
Syrus Akbary
0e355ee296 Improved documentation examples 2017-07-23 23:29:27 -07:00
Thibaut Fatus
c155b7a56e Doc was missing for using variables in queries
added an example
2017-07-12 18:52:46 +02:00
Vincent Fretin
9d30136095 Fix typo Grapehne -> Graphene 2017-05-17 11:05:53 +02:00
Ryan Ashcraft
0a9dbb608a Fix typo in dataloader docs 2017-05-15 19:06:23 -07:00
Yixi Zhang
bad6f5a188 fix typo in docs/execution 2017-04-26 16:27:44 -07:00
Syrus Akbary
082186c169 Added dataloader docs 2017-04-20 00:53:17 -07:00
Syrus Akbary
b71a2cb69e Fixed middleware docs to use whitespaces instead of tabs 2017-04-20 00:34:05 -07:00
Syrus Akbary
cc776e8def Added execution context example. Fixed #306 2016-11-14 20:49:33 -08:00
Syrus Akbary
adfbffb267 Added middleware docs 2016-10-31 05:32:59 +01:00