Alexandre Kirszenberg
6fda2f610c
Fix exception when extra_args can't be sorted by value
2019-03-02 19:55:37 +01:00
Alexandre Kirszenberg
2417f79693
Introduce refine_queryset and get_connection_parameters
...
refine_queryset lets DjangoObjectType define exactly how the queryset
should be refined before being returned to the user. For instance, some
objects could be filtered out according to a predicate, or some fields
could be prefetched depending on what the initial query requested.
get_connection_parameters lets DjangoObjectType define the name and
value of parameters that can be passed to any DjangoConnectionField that
uses them.
Both these additions come as building blocks to allow custom refinements
and filters without having to go through django-filter. Moreover, such
filters can also be further optimized than previously allowed, as the
GraphQL info object is available in refine_queryset.
2019-02-05 18:13:21 +01:00
Syrus Akbary
54ef52e1c6
Reformatted files using black
2018-07-19 16:52:24 -07:00
Daniel Bachler
34f5978446
Move distinct check code to merge_querysets again
2018-02-28 17:52:27 +01:00
Daniel Bachler
e05fbcc1b3
Fix failing unit test by handling cases where a connection is resolved involving a query with inner join and distinct that is then filtered and would be combined with a filtered queryset that is not distinct.
2018-02-28 14:41:47 +01:00
=
de59d26968
Test: erro if last is greater than max - plus fix wrong variable
2017-12-12 12:24:11 -05:00
Syrus Akbary
3d58148f03
Code adapted to new resolver API
2017-07-28 09:43:27 -07:00
Syrus Akbary
64118790ff
Fixed list resolver
2017-07-26 23:41:34 -07:00
Syrus Akbary
6ceb07c51c
Improved resolver consistency
2017-07-26 23:36:08 -07:00
Syrus Akbary
72529b70bb
Fixed all tests and flake issues
2017-07-24 23:42:40 -07:00
Syrus Akbary
48bcccdac2
Improved integration with Graphene 2.0
2017-07-24 22:27:50 -07:00
Syrus Akbary
7263485225
Merge pull request #194 from dvdmgl/173-annotation-bug
...
Fix graphene 1.3 annotation bug
2017-06-28 20:53:01 -07:00
David Miguel
b3c761b1c8
Fix graphene 1.3 annotation bug
...
Issue #173
2017-06-06 19:19:29 +01:00
arianon@openmailbox.org
bfcac1d48c
Use Promise.then instead of Promise.get on DjangoConnectionField
2017-05-19 19:33:00 -04:00
arianon@openmailbox.org
4350582c52
Support Connections created from Promises
2017-05-19 19:12:28 -04:00
Syrus Akbary
46a1ddedd8
Added RELAY_CONNECTION_MAX_LIMIT and RELAY_CONNECTION_ENFORCE_FIRST_OR_LAST settings
...
Relay connections will be limited to 100 records by default.
2017-04-15 02:15:17 -07:00
Syrus Akbary
5833cb83be
Fixed filterset limit issue
2017-04-15 01:00:02 -07:00
Niall
fda876fdc2
Long-winded intersection using sets
2017-03-06 19:41:45 +00:00
Niall
69457cffdf
Attempt fix. Breaks tests
2017-03-06 18:13:40 +00:00
Niall
7085437a12
Fix filtering with a resolver and DjangoFilter filter.
2017-03-05 17:13:09 +00:00
Syrus Akbary
87f0c33983
Merge pull request #118 from gamingexperience/fix/node-filtery-efficiency
...
Avoids redundant filtering with non-nested nodes.
2017-03-02 18:04:06 -08:00
Syrus Akbary
4cc46736bf
Simplified DjangoFilterConnectionField logic
2017-03-02 18:00:05 -08:00
Pablo Chinea
7f471252da
Avoids redundant filtering with non-nested nodes.
2017-02-23 14:24:25 +00:00
Pablo Chinea
b26f914b54
Fixes filtering in nested nodes.
2016-12-29 15:40:12 +00:00
Syrus Akbary
775221c427
Fixed returns in class init
2016-10-15 18:19:34 -07:00
Syrus Akbary
7fbc3e69b1
Improved Django List retreival and added extra tests.
2016-09-21 19:34:30 -07:00
Conrad Kramer
17178cfcbf
Added a DjangoToManyField to handle to-many relationships
...
To-many relationships return a manager, which needs to be turned
into an iterable (its queryset) using `maybe_queryset`.
2016-09-20 21:25:05 -07:00
Syrus Akbary
459e390b47
Fixed connection field if django-filter is not installed
2016-09-17 18:41:14 -07:00
Syrus Akbary
4e23c3ccf6
Improved python syntax and sorts (pep8). Improved Readme
2016-09-17 17:09:56 -07:00
Syrus Akbary
0434899b4e
Isolated Graphene Django in a new package
2016-09-17 16:31:17 -07:00