Commit Graph

137 Commits

Author SHA1 Message Date
Peter Paul Kiefer
ed4ee98596
V2 has broken liks too see #1309 (#1310)
* fix broken links for the v2 branch

v2 brach has broken links to read the docs too

I additionally found a link to the git hub master tree, which should be
changed to main.

* #1295 github link fixed (master->v2)

Co-authored-by: Peter Paul Kiefer <dafisppk@gmail.com>
2022-02-13 08:50:04 +03:00
Thomas Leonard
998ed89a4e
feat: add TypedFilter which allow to explicitly give a filter input GraphQL type (#1142)
Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
2021-03-31 10:32:00 -07:00
Thomas Leonard
e323e2bc0b
Add enum support to filters and fix filter typing (v2) (#1114)
* - Add filtering support for choice fields converted to graphql Enum (or not)
- Fix type of various filters (used to default to String)
- Fix bug with contains introduced in previous PR
- Fix bug with declared filters being overridden (see PR #1108)
- Fix support for ArrayField and add documentation

* Fix tests

Co-authored-by: Thomas Leonard <thomas@loftorbital.com>
2021-02-22 20:22:09 -08:00
Tim Gates
e559a42374
docs: fix simple typo, outputing -> outputting (#1077)
There is a small typo in docs/debug.rst.

Should read `outputting` rather than `outputing`.
2020-12-29 11:30:30 -08:00
Rustam Ganeyev
dab6080fcf
Fixed typo in documentation (#1078)
Added missing kwargs to documentation
2020-12-29 11:30:10 -08:00
Ignacio Orlandini
8f63199a63
Handle database transactions (#1039)
* Handle Django database atomic requests

* Create and handle database atomic mutations

* Make code compatible with Python 2.7

* Code style

* Define set_rollback instead of using the one in rest_framework.views because of backward compatibility

* Implement mock.patch.dict
2020-12-22 20:18:14 -08:00
Semyon Pupkov
eb7a0265d8
Use explicit classmethod in simple mutation example (#1059)
rel #1038
2020-11-09 09:06:53 -08:00
Semyon Pupkov
8571bc465a
Improve ordering doc example (#1053) 2020-11-01 10:16:15 -08:00
DJ Kim
f5d94fda1f
Update testing.rst (#1026)
Co-authored-by: DJ Kim <djkim@paloaltonetworks.com>
2020-08-26 16:01:44 +01:00
Semyon Pupkov
88eefb0e07
Fix testing doc (#1024) 2020-08-26 15:59:43 +01:00
Varun Dey
6ce208db95
Fix missing colon in function definition (#1030) 2020-08-26 15:57:53 +01:00
Varun Dey
ac1f9ac360
Fix grammar (#1027) 2020-08-24 17:19:53 +01:00
Radosław Kowalski
55769e814f
Add headers support to GraphiQL (#1016)
Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-08-07 10:13:26 +01:00
Nikolai Røed Kristiansen
2308965658
Extract query function from GraphQLTestCase making it possible to use in a pytest fixture (#1015) 2020-08-05 20:24:16 +01:00
Jonathan Kim
97de26bf2e
Update tutorial docs (#994) 2020-08-05 20:17:53 +01:00
Eric Abruzzese
6aa6aaaa8c
Update GraphiQL, add GraphiQL subscription support (#1001) 2020-07-12 14:42:31 +01:00
Chris Hart
b1f6d41209
fixes minor typo in docs index (#969) 2020-05-22 11:12:27 +01:00
vineethvanga18
a987035ef3
fix typo (#959) 2020-05-11 21:03:17 +01:00
Jonathan Kim
b4e34a5794
Improve DjangoListField (#929) 2020-05-09 12:28:03 +01:00
Jonathan Kim
8990e173ac
Add extra types documentation (#902) 2020-05-09 12:19:02 +01:00
Roy Segall
3483428f70
Adding documentation for installing django-filter (#928) 2020-04-12 12:57:11 +01:00
fneitzel
b84f61afab
Documentation missing endpoint explanation (#918)
* Documentation missing endpoint explanation

Add some information about GRAPHQL_URL. Otherwise people run into ERROR 400 problems, if they have a different endpoint.

* Update docs/testing.rst

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

Co-authored-by: Jonathan Kim <jkimbo@gmail.com>
2020-04-06 09:58:55 +01:00
Jonathan Kim
348fcf37a0
Detect format from output file path (#868)
* Detect format from output file path

* Fix tests

* Add test for exporting graphql file

* Add some documentation
2020-03-13 10:04:55 +00:00
Jonathan Kim
b8e598d66d
Add options to override how Django Choice fields are converted t… (#860)
* Add new setting to create unique enum names

* Add specific tests for name generation

* Add schema test

* Rename settings field

* Rename setting

* Add custom function setting

* Add documentation

* Use format instead of f strings

* Update graphene_django/converter.py

Co-Authored-By: Syrus Akbary <me@syrusakbary.com>

* Fix tests

* Update docs

* Import function through import_string function

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-03-13 10:04:25 +00:00
Akhil Gopi
13352216a4
Improv/documentation fixes (#895)
* Bump up the minimum support Django version.

* Update documentation to mention support for Django 1.11.

Co-authored-by: Akhil <akhil@healthifyme.com>
2020-03-07 17:17:45 +01:00
Jonathan Kim
de87573e0c
Add information on how to deal with CSRF protection (#838) 2020-01-11 14:49:17 +01:00
Jason Kraus
a818ec9017 replace merge_queryset with resolve_queryset pattern (#796)
* replace merge_queryset with resolve_queryset pattern

* skip double limit test

* Update graphene_django/fields.py

Co-Authored-By: Jonathan Kim <jkimbo@gmail.com>

* yank skipped test

* fix bad variable ref

* add test for annotations

* add test for using  queryset with django filters

* document ththat one should use defer instead of values with queysets and DjangoObjectTypes
2019-11-28 10:49:37 +00:00
Athul Cyriac Ajay
e51e60209a Updated Tutorial with Highlights (#801) 2019-10-31 19:31:31 -04:00
Brett Jackson
def6b15e5b Update schema introspection docs to show SCHEMA_INDENT option (#802)
* Update schema introspection docs to show indent settings

* fix whitespace
2019-10-19 20:33:33 +01:00
Tyler Kennedy
4bbc0824a6 Fix a small typo, filerset_class -> filterset_class (#762) 2019-09-17 09:13:47 -07:00
Talley Lambert
254e59c36f Adds variables arg to GraphQLTestCase.query (#699)
* add variables arg in GraphQLTestCase.query

* update GraphQLTestCase.query docstring and remove type check
2019-09-07 11:49:29 -07:00
Semyon Pupkov
ac79b38cf0 Use field and exclude in docs instead deprecated attrs (#740) 2019-09-07 09:49:41 -07:00
A C SREEDHAR REDDY
1b8184ece1 make Mutation class ObjectType. (#748) 2019-08-16 14:34:28 +01:00
A C SREEDHAR REDDY
9d245287a4 is_authenticated is bool not callable. (#749) 2019-08-16 14:33:59 +01:00
Gert Van Gool
d5e71bc9be Fix typo of imoprt to import (#742) 2019-08-10 21:30:17 +01:00
Jonathan Kim
b7e4937775
Alias only_fields as fields and exclude_fields as exclude (#691)
* Create new fields and exclude options that are aliased to exclude_fields and only_fields

* Update docs

* Add some checking around fields and exclude definitions

* Add all fields option

* Update docs to include `__all__` option

* Actual order of fields is not stable

* Update docs/queries.rst

Co-Authored-By: Semyon Pupkov <semen.pupkov@gmail.com>

* Fix example code

* Format code

* Start raising PendingDeprecationWarnings for using only_fields and exclude_fields

* Update tests
2019-07-09 14:03:11 +01:00
Jonathan Kim
0988e0798a
Adds documentation to CAMELCASE_ERRORS setting (#689)
* Rename setting and add documentation

* Add examples

* Use `cls`
2019-07-08 22:22:08 +01:00
Jonathan Kim
612ba5a4ea
Add convert_choices_to_enum option on DjangoObjectType Meta class (#674)
* Add convert_choices_to_enum meta option

* Add tests

* Run black

* Update documentation

* Add link to Django choices documentation

* Add test and documentation note

That setting to an empty list is the same as setting the value as False

* Fix Django warning in tests

* rst is not markdown
2019-06-17 18:48:29 +01:00
Jonathan Kim
6e8dce95ae
Update doc setup (#673)
* Expose doc commands in root makefile and add autobuild

* Fix some errors

* Alias some commands and add PHONY
2019-06-14 12:33:37 +01:00
Emil Goldsmith Olesen
fcc491fffb Add watch option to graphql_schema (#656)
* Add watch option to graphql_schema

* add documentation for grapql_schema --watch
2019-06-09 17:06:50 -07:00
Mel van Londen
a9a8d672e9
Merge pull request #600 from sierreis/filterset-class
Add support for filterset_class meta parameter
2019-06-09 16:48:46 -07:00
Richard Sween
d06217d203
Fix Mutations Relay example imports
Per comment here: https://github.com/graphql-python/graphene-django/pull/657#issuecomment-499618785
2019-06-06 13:53:16 -05:00
Richard Sween
fc49a50cc3
Update mutations.rst
I believe the `[1]` was ommitted from the `from_global_id` call as that method returns a tuple of type and id, of which we're only interested in the id here. Took me half a day to figure out why this code wasn't working today. See function def here: https://github.com/graphql-python/graphql-relay-py/blob/master/graphql_relay/node/node.py#L67
2019-06-05 19:43:51 -05:00
Dulmandakh
49aedf171a bump graphiql to 0.13.0, and rename __debug to _debug due to __ limitations 2019-05-20 17:48:28 +08:00
Paul Hallett
80125c3077
Merge pull request #641 from changeling/fix_babel_link
Correct Babel Relay Plugin docs link per Issue 358.
2019-05-16 09:08:31 +01:00
changeling
04fe299a6e Corrected docs/queries.rst. (#633)
* Corrected typos in docs/queries.rst.

* Add basic resolvers to Relay Full example in docs/queries.rst.

Added basic resolvers to Full example in Relay section.

* Remove question and question resolver.

* Add query example to queries.rst.

Added query example in Relay section.
Minor clean-up.
2019-05-15 20:50:55 -04:00
changeling
884c4cce0c Correct Babel Relay Plugin docs link per Issue 358.
See graphql-python#358.
2019-05-15 16:27:35 -05:00
Paul Hallett
e26a9f2a44
Merge pull request #631 from graphql-python/fix-628
Fix importing error for GraphQLTestCase
2019-05-13 18:12:22 +01:00
David Beitey
ce9d989bcd Update install docs for Django 2.x
This uses the new URL routing syntax introduced in Django 2.0 (https://docs.djangoproject.com/en/2.2/releases/2.0/#simplified-url-routing-syntax).  The older `url()` syntax will deprecated at some point in future https://docs.djangoproject.com/en/2.2/ref/urls/#url
2019-05-13 17:08:26 +10:00
Paul Hallett
2bf7e7f66d
Fix importing error for GraphQLTestCase 2019-05-08 22:45:28 +01:00