Commit Graph

1765 Commits

Author SHA1 Message Date
belkka
b274a607f4
Avoid ambiguity in graphene.Mutation docstring
The code example in docstring starts with `from graphene import Mutation` and defines a `class Mutation` later. This definition would shadow previously imported name and (which is more important) confuses a reader about usage of this class — one need to keep in mind that previous usage of `Mutation` is imported from graphene and have not been overridden yet.

This PR changes an import-from statement to an import statement, so `graphene.Mutation` is used explicitly. This approach is consistent with other code examples in docs (e. g. https://docs.graphene-python.org/en/v2.1.9/types/mutations/).

Another option is to change name of example class Mutation to something more clear (maybe SchemaMutation or RootMutation), but I'm not sure what name to choose.

Only docstring is updated, no code changes.
2021-10-11 23:46:13 +03:00
Eran Kampf
0a54094f59
v3.0.0b8 2021-09-29 23:42:36 -07:00
Syrus Akbary
9c1db0f662
Merge pull request #1376 from codebyaryan/master
Fix unseen examples
2021-09-30 08:23:09 +02:00
Syrus Akbary
03aad2799a
Merge pull request #1377 from graphql-python/fix-graphql-core-dependency
Fix GraphQL-core dependency
2021-09-30 08:22:41 +02:00
Eran Kampf
b6c8931b22
Fix GraphQL-core dependency
GraphQL-core released `3.2.0rc1` with some breaking changes and
1. We should be getting RC releases in our dependencies
2. It has breaking changes, so we shouldn't get 3.2.0 unless someone fixes it explicitly
2021-09-29 17:11:16 -07:00
Aryan Iyappan
10aee710fc
Merge branch 'graphql-python:master' into master 2021-09-29 18:13:31 +05:30
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
Drew Hoover
78973964b8
fix: update ariadne url to the new docs 2021-09-21 13:00:19 -04:00
Syrus Akbary
f039af2810
Merge pull request #1359 from codebyaryan/fix-actions
Fix actions
2021-08-23 22:07:12 -05:00
Aryan Iyappan
47696559c7 run linters locally 2021-08-24 08:30:54 +05:30
Aryan Iyappan
2e5944eb20 format code 2021-08-22 11:03:22 +05:30
Aryan Iyappan
2c66e496f7
Update tox.ini 2021-08-22 08:48:38 +05:30
Aryan Iyappan
908d5aeaeb
Update .pre-commit-config.yaml 2021-08-22 08:48:15 +05:30
Aryan Iyappan
d5d7a0e5e0
Update tox.ini 2021-08-21 21:41:47 +05:30
Aryan Iyappan
85f06fb2a6
Update tox.ini 2021-08-21 21:37:30 +05:30
Aryan Iyappan
a3a2f999aa
Update .pre-commit-config.yaml 2021-08-21 21:33:00 +05:30
Aryan Iyappan
7087710d02
Update .pre-commit-config.yaml 2021-08-21 21:17:00 +05:30
Aryan Iyappan
1c3054b7c8
Update test_connection_async.py 2021-08-21 21:01:27 +05:30
Aryan Iyappan
5896ade2dd
Update test_connection_query.py 2021-08-21 20:58:18 +05:30
Aryan Iyappan
76701e0809
Update .pre-commit-config.yaml 2021-08-21 20:53:58 +05:30
Aryan Iyappan
3b77b5f92a
Update tox.ini 2021-08-21 20:36:41 +05:30
Aryan Iyappan
16d0b32a8f
Update .pre-commit-config.yaml 2021-08-21 20:21:46 +05:30
Aryan Iyappan
d54b819552
Update .pre-commit-config.yaml 2021-08-21 18:37:44 +05:30
Aryan Iyappan
1886ec9dcb
Update schema.py 2021-08-21 18:34:39 +05:30
Aryan Iyappan
0ebff3313d
Update test_schema.py 2021-08-21 18:30:42 +05:30
Aryan Iyappan
7827219ba2
Update schema.py 2021-08-21 18:29:56 +05:30
Aryan Iyappan
ce59f1ff15
Rename .pre-commit-config.yml to .pre-commit-config.yaml 2021-08-21 17:48:33 +05:30
Aryan Iyappan
3145543386
Update tox.ini 2021-08-21 17:46:14 +05:30
Aryan Iyappan
7960b02124
Delete lint.yml 2021-08-21 17:41:12 +05:30
Aryan Iyappan
9807d6102c
Update coveralls.yml 2021-08-21 17:40:08 +05:30
Aryan Iyappan
e66d6148ab
Create lint.yml 2021-08-21 17:25:38 +05:30
Aryan Iyappan
1654d2fa29
Update coveralls.yml 2021-08-21 17:24:11 +05:30
Aryan Iyappan
772986ac83
Create lint.yml 2021-08-21 17:23:27 +05:30
Aryan Iyappan
0aef168687
Create deploy.yml 2021-08-21 17:21:48 +05:30
Aryan Iyappan
dc6b820635
Create coveralls.yml 2021-08-21 17:19:53 +05:30
Aryan Iyappan
16551369b2
Update tests.yml 2021-08-21 17:16:43 +05:30
Aryan Iyappan
e1822c9ae9
Create stale.yml 2021-08-21 17:15:28 +05:30
Aryan Iyappan
3c50fa817a
Delete stale.yml 2021-08-21 17:14:52 +05:30
Syrus Akbary
efc03533ae
Merge pull request #1357 from codebyaryan/master
add support for query validation
2021-08-20 19:40:50 -05:00
Aryan Iyappan
74a6565ea3
Update depth_limit.py 2021-08-20 21:07:57 +05:30
Aryan Iyappan
98980b53f6
Update depth_limit.py 2021-08-20 21:04:22 +05:30
Aryan Iyappan
57a4394bf3
Update depth_limit.py 2021-08-20 20:56:19 +05:30
Aryan Iyappan
ea4e6d65e9
Update schema.py 2021-08-20 16:08:58 +05:30
Aryan Iyappan
18cd3451f9
Update test_schema.py 2021-08-20 15:59:38 +05:30
Aryan Iyappan
946c2a3807
Update schema.py 2021-08-20 15:58:43 +05:30
Syrus Akbary
7d890bf915
Update graphene/validation/disable_introspection.py 2021-08-19 14:02:45 -05:00
Aryan Iyappan
0e4c14b076 update workflow: tests 2021-08-19 15:00:09 +05:30
Aryan Iyappan
8ae4369155 remove build matrix wherever not needed 2021-08-19 12:16:13 +05:30
Aryan Iyappan
c0ddbbfaf4 update workflow matrix 2021-08-19 12:13:46 +05:30