Commit Graph

910 Commits

Author SHA1 Message Date
Syrus Akbary
5287758f0e Fixed Relay Connection name 2016-09-17 21:14:56 -07:00
Syrus Akbary
aa84d6d8db Improved objecttype typemap duplication 2016-09-17 12:05:05 -07:00
Syrus Akbary
061c33f8d6 Merge branch 'next-typemap-duplicate' 2016-09-17 12:02:41 -07:00
Syrus Akbary
8e320da051 Merge pull request #285 from Globegitter/edge-for-type
Added test for node connection edge.
2016-09-12 08:58:57 -07:00
Syrus Akbary
2fbf17a109 Merge pull request #286 from Globegitter/easier-private-state
Allow initialising ObjectType with private state.
2016-09-12 08:09:31 -07:00
Markus Padourek
2975e1fc42 Allow initialising ObjectType with private state. 2016-09-12 15:51:51 +01:00
Markus Padourek
aa94fe157e compare as dict for py3.5 compat. 2016-09-12 15:36:09 +01:00
Syrus Akbary
bb636b81c2 Merge pull request #284 from dialoguemd/fix-assert-message
Make assertion message use same var as test
2016-09-12 07:31:18 -07:00
Markus Padourek
73945fb569 Added test for node connection edge. 2016-09-12 15:28:13 +01:00
Hugo Duncan
f232e433e6 Make assertion message use same var as test
Ensure that the assertion message correctly shows the value used by
the assertion test.
2016-09-12 10:06:35 -04:00
Markus Padourek
3888307f89 Added GlobalID as well. 2016-09-12 09:31:22 +01:00
Markus Padourek
c15ce93542 Export union type directly. 2016-09-12 09:25:38 +01:00
Syrus Akbary
c78ff81f3a Make Mutation class visible in graphene root package 2016-09-10 22:17:13 -07:00
Syrus Akbary
9f30aa2d45 Added auto_camelcase to TypeMap/Schema 2016-09-10 21:44:10 -07:00
Syrus Akbary
05d71aac75 Added auto_camelcase checking in Schema/Typemap 2016-09-08 22:50:23 -07:00
Syrus Akbary
751c4245c5 Fixed import error 2016-09-08 21:35:18 -07:00
Syrus Akbary
9992952908 Fixed mutation input 2016-09-08 20:38:07 -07:00
Syrus Akbary
92dbba91b7 Fixed mutation tests 2016-09-08 20:16:34 -07:00
Syrus Akbary
b4657a5796 Added PageInfo to graphene exports 2016-09-08 20:14:25 -07:00
Syrus Akbary
d3716ff5db Fixed Mutation with no input 2016-09-08 20:13:52 -07:00
Syrus Akbary
9fc431b581 Fixed Python3 issues 2016-09-04 22:00:33 -07:00
Simon Hewitt
7952f94f53 handle objects being constructed in the typemap multiple times 2016-08-31 14:45:05 -07:00
Syrus Akbary
80fb69a9ae Stop requiring get_node in implemented Nodes 2016-08-24 01:15:59 -07:00
Syrus Akbary
241b59dda9 Added Relay connection tests 2016-08-24 01:11:26 -07:00
Syrus Akbary
4d0b9a0f15 Fixed package version 2016-08-22 22:53:01 -07:00
Syrus Akbary
012d0098e0 Fixed Python3 issues 2016-08-22 22:45:28 -07:00
Syrus Akbary
6543f9272a Updated input field names with out_name 2016-08-22 22:08:49 -07:00
Syrus Akbary
208651a4c0 Fixed connection resolver 2016-08-22 20:34:37 -07:00
Syrus Akbary
d17bd0aa3e Fixed arg names 2016-08-21 23:33:32 -07:00
Syrus Akbary
dac4f2dc19 Fixed SQLAlchemy integration 2016-08-19 09:18:29 -07:00
Syrus Akbary
1e3b30124f Improved benchmarks isolated instancing from type resolution 2016-08-18 09:22:28 -07:00
Syrus Akbary
0922f91c33 Fixed Python3 test assertions 2016-08-17 22:13:55 -07:00
Syrus Akbary
0f76e8f817 Added simple benchmarks 2016-08-17 21:26:05 -07:00
Syrus Akbary
bf5e0e2881 Fixed flake error 2016-08-17 00:52:02 -07:00
Syrus Akbary
a48b41eaf9 Added NonNull restriction 2016-08-17 00:32:53 -07:00
Syrus Akbary
e2904a4d6e Improved typemap testing 2016-08-17 00:28:56 -07:00
Syrus Akbary
135a171fe4 Fixed mutation input inheritance 2016-08-16 23:43:10 -07:00
Syrus Akbary
8e5555a044 Merge branch 'next' into next-allow-subclassing 2016-08-16 23:26:42 -07:00
Syrus Akbary
657810aef7 Fixed enum import 2016-08-16 22:59:44 -07:00
Syrus Akbary
100e03ec0c Add documentation to is_node 2016-08-16 22:58:40 -07:00
Syrus Akbary
3787269812 Moved enum to pyutils 2016-08-16 22:58:03 -07:00
Syrus Akbary
af9e51e58d Added documentation 2016-08-16 21:32:53 -07:00
Syrus Akbary
f53c26c7ab Simplified fields implementation 2016-08-16 21:12:09 -07:00
Markus Padourek
81013fbafb abstract type interface test. 2016-08-16 16:15:00 +01:00
Markus Padourek
a78c487173 Some testing around. 2016-08-16 16:10:05 +01:00
Markus Padourek
ef8d7e2bd2 Added additional test. 2016-08-16 11:43:04 +01:00
Markus Padourek
7913052d07 Added failing test for relay mutation 2016-08-16 11:34:44 +01:00
Markus Padourek
0ef065e5cc Added breaking test to demonstrate wanted subclassing feature. 2016-08-16 11:21:31 +01:00
Syrus Akbary
018811036b Remove unused merge 2016-08-16 00:34:55 -07:00
Syrus Akbary
a056acba62 Added more info to the connections 2016-08-16 00:33:43 -07:00
Syrus Akbary
a55741b03c Added node resolver 2016-08-16 00:15:00 -07:00
Syrus Akbary
8c321875cf Simplified Relay Connection implementation 2016-08-16 00:00:01 -07:00
Syrus Akbary
5cb5d9d65a Improved Relay Connection 2016-08-15 23:24:03 -07:00
Syrus Akbary
fd0b9223cf Made fields logic more clear 2016-08-15 23:19:18 -07:00
Syrus Akbary
030fde2cff Improved system for getting graphene package version 2016-08-14 17:47:52 -07:00
Syrus Akbary
6f99372287 Added relay imports to Graphene. 2016-08-14 17:07:51 -07:00
Syrus Akbary
7940f02ba9 Fixed Argument, Dynamic flake8 bug 2016-08-14 17:05:51 -07:00
Syrus Akbary
6fa32a7287 Fixed PEP8 errors 2016-08-14 16:58:32 -07:00
Syrus Akbary
9f1c5fa682 Fixed Python3 errors 2016-08-14 16:50:03 -07:00
Syrus Akbary
5ca6f6cb7b Added is_base_type back 2016-08-14 15:51:07 -07:00
Syrus Akbary
3feae35f69 Added schema middlewares 2016-08-14 13:40:33 -07:00
Syrus Akbary
29e5502e0e Improved relay ClientIDMutation 2016-08-14 11:05:40 -07:00
Syrus Akbary
dbc981c6d2 Fixed runtime type resolution. 2016-08-14 10:20:09 -07:00
Syrus Akbary
a0228ae6b2 Moved relay is_node definition 2016-08-14 02:19:37 -07:00
Syrus Akbary
f4062c3fc3 Added Dynamic type (resolved in runtime) 2016-08-14 02:19:03 -07:00
Syrus Akbary
99eec49a06 Removed unused code. Small refactor 2016-08-13 23:15:20 -07:00
Syrus Akbary
3f3bb113ce Removed unnecessary files. 2016-08-13 23:06:18 -07:00
Syrus Akbary
7804f10732 Added ClientIDMutation. All examples working 💪 2016-08-13 23:00:25 -07:00
Syrus Akbary
e2036da75f Added relay.Connection and relay.ConnectionField 2016-08-13 21:05:45 -07:00
Syrus Akbary
b19bca7f3b Improved base implementation 2016-08-13 17:37:57 -07:00
Syrus Akbary
0ffdd8d9ab Improved Relay implementation 2016-08-13 17:36:11 -07:00
Syrus Akbary
fd16de8748 Fixed required get_type in Enum for UnmountedType 2016-08-13 17:32:32 -07:00
Syrus Akbary
4f52498a06 Added required option in Argument 2016-08-13 17:32:07 -07:00
Syrus Akbary
2696ae9b73 Make new_types the deafult types 2016-08-13 14:43:51 -07:00
Syrus Akbary
c339afc1ce Added TypeMap objecttype test. Fixed Field arguments 2016-08-13 13:38:05 -07:00
Syrus Akbary
ec4a49498d Added datetime scalar 2016-08-13 13:19:58 -07:00
Syrus Akbary
6e0789bfcd Improved implementation 2016-08-13 13:19:47 -07:00
Syrus Akbary
b68b1753bb Added enum support in typemap 2016-08-13 13:05:38 -07:00
Syrus Akbary
84c1da60dd Added Union. Improved testing and code 2016-08-13 11:10:41 -07:00
Syrus Akbary
0802aaced0 Added InputObjectType conversion 2016-08-13 09:39:46 -07:00
Syrus Akbary
0f66dba7e8 Improved testing 2016-08-13 09:15:24 -07:00
Syrus Akbary
a7b3d193eb Added Field arguments. 2016-08-13 01:50:32 -07:00
Syrus Akbary
70a9de63f9 Added InputObjectType and InputField 2016-08-12 19:23:33 -07:00
Syrus Akbary
8cf5b1d9ab Added Enum 2016-08-12 18:57:18 -07:00
Syrus Akbary
9c4706f7c5 Added Mutation 2016-08-12 18:37:29 -07:00
Syrus Akbary
e408541c7b Improved testing. Added strucutre serialization. Remove unused code 2016-08-12 18:13:47 -07:00
Syrus Akbary
1c24e1b954 Added Union type 2016-08-12 18:06:01 -07:00
Syrus Akbary
7923f45595 Added TypeMap 2016-08-11 19:44:37 -07:00
Syrus Akbary
3620e2ad4e Improved scalars 2016-08-11 01:25:32 -07:00
Syrus Akbary
3e77f258b4 Improved schema 2016-08-11 01:25:24 -07:00
Syrus Akbary
c4fba3b7ca Improved error messaging 2016-08-11 01:02:37 -07:00
Syrus Akbary
feb8fb9b13 Improved schema implementation 2016-08-11 01:00:46 -07:00
Syrus Akbary
ac0e699069 Added schema 2016-08-11 00:27:37 -07:00
Syrus Akbary
453d6d6ab7 Added scalars 2016-08-11 00:05:33 -07:00
Syrus Akbary
55a1450dd3 Improved abstracttypes implementation 2016-08-10 23:39:28 -07:00
Syrus Akbary
cd0be62993 Added abstract types simplification 2016-08-10 23:15:32 -07:00
Syrus Akbary
550ad386f0 Next types 2016-08-10 22:03:38 -07:00
Syrus Akbary
04492600e5 First stage separate interfaces 2016-08-08 09:37:06 -07:00
Syrus Akbary
ff3968faea Removed unused function 2016-08-07 17:08:50 -07:00
Syrus Akbary
2c446658e5 Improved tests 2016-08-07 17:01:09 -07:00
Syrus Akbary
27a0d4147f Removed implements check 2016-08-07 16:53:40 -07:00
Syrus Akbary
0f279abecf Improved unmounted type logic 2016-08-07 16:31:06 -07:00
Syrus Akbary
387b997b1d Fixed tests and flake errors 2016-08-06 19:42:06 -07:00
Syrus Akbary
e6e08f60bc Fixed json literal parsing 2016-08-06 19:21:44 -07:00
Syrus Akbary
ba4d1d6abf Fixed Python3 tests 2016-07-22 20:38:45 -07:00
Syrus Akbary
af4c63512c First working version of graphene-sqlalchemy 2016-07-22 20:24:12 -07:00
Syrus Akbary
12ffb027fa Improved connection abstraction 2016-06-23 15:13:54 -07:00
Syrus Akbary
4168439abe Removed type definitions 2016-06-22 23:38:01 -07:00
Syrus Akbary
b6522f393c Refactored InputObjectType 2016-06-22 23:35:50 -07:00
Syrus Akbary
cbf0d8fedd Moved Enum logic 2016-06-22 23:30:49 -07:00
Syrus Akbary
3529fcb29b Moved scalar definitions 2016-06-22 23:25:09 -07:00
Syrus Akbary
1737089c6d Refactored GraphQL type generator 2016-06-22 23:22:09 -07:00
Syrus Akbary
7d59489183 Remove abstract from options 2016-06-21 23:31:29 -07:00
Syrus Akbary
f9303dab72 Improved Django integration 2016-06-21 23:04:12 -07:00
Syrus Akbary
37ed617fce Fixed Graphene Django integration 2016-06-21 22:52:39 -07:00
Syrus Akbary
043e548f49 Added JSONString 2016-06-21 22:07:16 -07:00
Syrus Akbary
1827099381 Added get_fields to options 2016-06-21 17:40:38 -07:00
Syrus Akbary
b5458493ce Improved objecttype 2016-06-21 14:09:54 -07:00
Syrus Akbary
c87d87d1ea Improved ObjectType fields 2016-06-21 13:09:14 -07:00
Syrus Akbary
568718d573 Added support for Enum descriptions 2016-06-21 12:01:03 -07:00
Syrus Akbary
9a9d7f8873 Moved Interface to ObjectType. Improved integration with latest GraphQL-core 2016-06-21 11:54:14 -07:00
Syrus Akbary
b772499b9b Improved Interface/ObjectType is_type_of abstraction 2016-06-19 14:29:41 -07:00
Syrus Akbary
907a093117 Allow dates in Datetime scalar 2016-06-19 14:28:57 -07:00
Syrus Akbary
d3f98d75f6 Improved relay integration and abstraction 2016-06-19 14:28:47 -07:00
Syrus Akbary
ccd8349ef6 Added as_field utility 2016-06-18 14:32:53 -07:00
Syrus Akbary
3c2f2c3c06 Added DateTime scalar 2016-06-18 14:32:17 -07:00
Syrus Akbary
e7e2ed518a Use OrderedDict in Enum by default 2016-06-18 14:31:19 -07:00
Syrus Akbary
80f98c5fd3 Improved enum. Removed old @implements 2016-06-17 01:27:31 -07:00
Syrus Akbary
995150bfa5 Improved is_graphene_type 2016-06-17 01:27:05 -07:00
Syrus Akbary
35f42f4e0c Improved relay types 2016-06-15 22:45:28 -07:00
Syrus Akbary
dd377c7da3 Fixed Python3 issues 2016-06-15 22:34:12 -07:00
Syrus Akbary
6e38e48faf Improved code lint 2016-06-15 21:40:54 -07:00
Syrus Akbary
ccfed3df3f Improved Python3 compat 2016-06-15 21:40:12 -07:00
Syrus Akbary
145183d0ae Remove commented code 2016-06-15 21:24:01 -07:00
Syrus Akbary
8bd9669d3d Removed unused implements 2016-06-15 21:20:35 -07:00
Syrus Akbary
ee46d8c7be Improved Scalars tests 2016-06-15 21:16:31 -07:00
Syrus Akbary
2172edc033 Improved docs 2016-06-15 21:00:06 -07:00
Syrus Akbary
b91e10ef8a Improved tests 2016-06-15 00:18:20 -07:00
Syrus Akbary
5ccd815fbd Added ConnectionField 2016-06-14 23:48:25 -07:00
Syrus Akbary
c74a75133e Autolint all the files 2016-06-14 22:29:02 -07:00
Syrus Akbary
76ecd895e1 Removed unused code 2016-06-14 22:26:18 -07:00
Syrus Akbary
46918d3ba0 Fixed test 2016-06-14 22:20:06 -07:00
Syrus Akbary
88a81e306b Remove unused logic 2016-06-14 22:17:13 -07:00
Syrus Akbary
afd521de29 Improved relay Connection 2016-06-14 22:13:01 -07:00
Syrus Akbary
ac416b6ab0 Improved ClientIdMutation 2016-06-14 22:04:57 -07:00
Syrus Akbary
8d4cf2d059 Updated Node 2016-06-14 21:45:44 -07:00
Syrus Akbary
6c7cf55b18 Added Mutation support 2016-06-13 20:26:26 -07:00
Syrus Akbary
cf80f87dca Improved ObjectType implementation 2016-06-13 19:58:11 -07:00
Syrus Akbary
d8201c44fa Added better enum 2016-06-13 19:18:00 -07:00
Syrus Akbary
7219babbd7 Improved ScalarType 2016-06-13 18:58:06 -07:00
Syrus Akbary
8078937359 Improved InputObjectType abstraction 2016-06-12 01:15:57 -07:00
Syrus Akbary
a6346664a3 Improved fields logic 2016-06-12 00:20:33 -07:00
Syrus Akbary
e6788993ba Simplified interface logic 2016-06-11 00:47:38 -07:00
Syrus Akbary
eec4c52c33 Renamed from TypeProxy to UnmountedType 2016-06-10 22:40:22 -07:00
Syrus Akbary
c0460060a0 Simplified options 2016-06-10 22:36:48 -07:00
Syrus Akbary
a9e09dcee8 Improved relay connections 2016-06-10 01:20:53 -07:00
Syrus Akbary
66c375bfe3 Added simple relay connection 2016-06-10 00:44:49 -07:00
Syrus Akbary
51e97510c0 Improved relay nodes and field copies 2016-06-10 00:23:31 -07:00
Syrus Akbary
522f769cad Improved Node/Mutation fields 2016-06-09 22:56:41 -07:00
Syrus Akbary
9025b1c8f0 Improve Field and InputField copy 2016-06-09 22:03:04 -07:00
Syrus Akbary
d8d884c9be Improved extend interfaces syntax 2016-06-09 21:47:06 -07:00
Syrus Akbary
d67b7bc6a1 Improved relay compatibility 2016-06-09 21:24:28 -07:00
Syrus Akbary
b24e9a1051 Refactored fields getter to be immutable 2016-06-08 22:23:28 -07:00
Syrus Akbary
25e967200b Improved fields mounting 2016-06-07 22:39:29 -07:00
Syrus Akbary
9f655d9416 Improved interface fields getter 2016-06-07 22:00:00 -07:00
Syrus Akbary
01190fb6ff Added mutation and props utility 2016-06-07 02:28:13 -07:00
Syrus Akbary
4c8f5367ba Simplified code 2016-06-06 20:38:55 -07:00
Syrus Akbary
ec67303594 Restrict the usage of TypeProxy instances 2016-06-06 02:39:47 -07:00
Syrus Akbary
3a566241f3 Use always the resolve methods as unbounds. __func__ to the rescue 2016-06-06 02:06:17 -07:00
Syrus Akbary
0db5b1cfbc Move resolver to interface too 2016-06-06 02:03:57 -07:00
Syrus Akbary
da3769b902 Fix test case 2016-06-06 01:30:29 -07:00
Syrus Akbary
01130b8af5 Set interface list to be immutable 2016-06-06 01:29:05 -07:00
Syrus Akbary
251d7106e2 Improved scalar implementation thinking immutable 2016-06-06 00:48:43 -07:00
Syrus Akbary
77ec170dd5 Let the interfaces be immutable 2016-06-06 00:39:55 -07:00
Syrus Akbary
b17f081906 Improved enum attrs 2016-06-06 00:05:00 -07:00
Syrus Akbary
19dff03784 Improved documentation 2016-06-05 19:29:24 -07:00
Syrus Akbary
ad607eb122 Changed name from GrapheneType to GrapheneGraphQLType 2016-06-04 19:19:08 -07:00
Syrus Akbary
31ea09ff30 Improved options 2016-06-04 19:10:18 -07:00
Syrus Akbary
2b676743ae Removed slots 2016-06-04 19:06:33 -07:00
Syrus Akbary
ff7bf20f6d Added some mutable comments 2016-06-04 18:49:26 -07:00
Syrus Akbary
0f10ae884f Allow InputObjectType instances to be Type proxies 2016-06-04 16:04:21 -07:00
Syrus Akbary
50c1ab62ba Fixed Enum value getter 2016-06-04 15:45:54 -07:00
Syrus Akbary
449b8c67d1 Added reset_counter to ordered types. Improved node implementation 2016-06-04 15:36:32 -07:00
Syrus Akbary
ab72393e66 Added InputField, InputObjectType. Improved Field implementation 2016-06-04 15:22:10 -07:00
Syrus Akbary
89790e7508 Added Enum type 2016-06-04 14:06:16 -07:00
Syrus Akbary
58291a3b25 Moved GraphQL definitions to each corresponding file 2016-06-04 13:05:51 -07:00
Syrus Akbary
a1454fdd74 Fixed resolve context 2016-06-04 12:48:08 -07:00
Syrus Akbary
3acf5fd588 Improved tests 2016-06-04 11:20:45 -07:00
Syrus Akbary
40ce604d2c Improved field resolving 2016-06-04 03:12:09 -07:00
Syrus Akbary
d58d1f8d89 Added List, NonNull types 2016-06-03 23:50:12 -07:00
Syrus Akbary
58dbfefc15 Improved interfaces in objecttypes 2016-06-03 21:28:29 -07:00
Syrus Akbary
33d4f44f04 Refactored all graphene code moving to 1.0 2016-06-03 21:06:54 -07:00
Syrus Akbary
7df1f8a88d Fixed unwrap cursor for make it work with DDT. Fixed #181 2016-05-31 21:15:10 -07:00
Syrus Akbary
b9695c877a Fixed ClientIDMutation GraphQL type name. Fixed #148 2016-05-31 20:55:01 -07:00
Syrus Akbary
9e715cd902 Fixed Django converter of field with grouped choices 2016-05-31 20:29:20 -07:00
Syrus Akbary
4636f9290a Merge branch 'master' into django-choices-grouping
# Conflicts:
#	graphene/contrib/django/tests/test_converter.py
2016-05-31 20:26:21 -07:00
Syrus Akbary
edfbbf52ef Fix field model 2016-05-31 20:05:49 -07:00
Syrus Akbary
4936e40258 Merge branch 'django-choices-translation' of https://github.com/Ian-Foote/graphene into fix_lazy_translated_choice 2016-05-31 19:49:25 -07:00
Syrus Akbary
7f6598518e Use Django forcetext for choices 2016-05-31 19:47:50 -07:00
Jacob Klapwijk
be449ab1c0 Fix ugettext_lazy objects in Choice tuples not being evaluated. Running .format() on it will return the string we want, and wont cause any problems when its run on a string without arguments 2016-05-31 16:11:54 +02:00
Syrus Akbary
da09bc3210 Fixed unregistered types in schema 2016-05-27 23:18:18 -07:00
Ian Foote
7d5d7eac3c Add test for django grouped choices 2016-05-26 16:07:18 +01:00
Ian Foote
8744f6a90e Add test for django choices with translation 2016-05-26 15:44:49 +01:00
Marc Tamlyn
aa2f4c5bac Failing test of interface implementation registration. 2016-05-26 12:16:45 +01:00
Syrus Akbary
8bc14953d7 Moved options testing to tests directory 2016-05-23 21:58:25 -07:00
Alec Aivazis
427a08106b fixed linting error 2016-05-22 17:17:07 -07:00
Alec Aivazis
161f198451 added test for auto_camelcase flag 2016-05-22 17:11:55 -07:00
Alec Aivazis
feb0825a63 fixed bug when no middlewares are present 2016-05-22 16:52:30 -07:00
Syrus Akbary
89074492e0 Merge pull request #177 from graphql-python/bugfixes/context-in-connectionfield
Added context to connectionfield resolver
2016-05-21 00:47:56 -07:00
Syrus Akbary
11a5ee189e Fixed issues 2016-05-21 00:40:26 -07:00
Syrus Akbary
ae8a23bfb8 Merge pull request #175 from AdrielVelazquez/master
Allow numbers in to_constant
2016-05-21 00:26:46 -07:00
Syrus Akbary
b9723356fe Fixed PEP8-Python3 errors 2016-05-20 23:52:00 -07:00
Syrus Akbary
577b76e436 Removed plugins. Added middlewares 2016-05-20 23:43:55 -07:00
Syrus Akbary
3428725314 First phase of middlewares 2016-05-20 23:25:54 -07:00
Syrus Akbary
8421b59d3a Improved resolver logic middleware by using promises 2016-05-20 21:44:31 -07:00
Adriel Velazquez
4d15bc4f79 Updating tests for regex changes 2016-05-20 15:20:10 -04:00
Adriel Velazquez
22b8b90fab Allow numbers in to_constant
Enums aren't effected if a int is passed along with the string.
2016-05-20 14:30:56 -04:00
Markus Padourek
5a949ce209 Added context to sqlalchemy connectionfield 2016-05-20 15:26:42 +01:00
Markus Padourek
83c2cb1b27 Add context to django connection field 2016-05-20 14:40:21 +01:00
Markus Padourek
bc98505ee5 Fixed missing context arg 2016-05-20 14:11:21 +01:00
Markus Padourek
e897efb79f Added test for with_context on connectionfield 2016-05-20 14:03:47 +01:00
Markus Padourek
7a5ad21b98 Added context to from_list 2016-05-20 14:00:57 +01:00
Markus Padourek
c4f29f050b Added context to connectionfield resolver 2016-05-20 13:59:39 +01:00
Syrus Akbary
25fd60d1ff Improved plugins 2016-05-20 01:23:45 -07:00
Syrus Akbary
b431bfe477 Fixed django OneToOne inverse relationship conversion. Fix #170 2016-05-19 21:56:05 -07:00
Syrus Akbary
3d66159826 Fixed lint error 2016-05-18 21:54:21 -07:00
Syrus Akbary
d6740e9ff5 Allow string references in InputTypes. Fixed #157 2016-05-18 21:49:37 -07:00
Syrus Akbary
10304eb8cf Added interfaces field into a ObjectType. Fixed #168 2016-05-18 21:00:50 -07:00
Marc Tamlyn
61e7beee7b Support with_context on ClientIDMutation.mutate_and_get_payload. 2016-05-18 11:50:03 +01:00
Syrus Akbary
7be5b83fdf Fixed PEP8 + Python 3 print 2016-05-11 23:54:15 -07:00
Syrus Akbary
7a27a9ef9f Fixed get_node 2016-05-11 23:47:10 -07:00
Syrus Akbary
c738d3db28 Added support for graphql 0.5.0 2016-05-10 00:42:18 -07:00
Alec Aivazis
76ea7d7637 schema now use default executor 2016-05-06 23:25:47 -07:00
Alec Aivazis
84834d1218 fixed reference to sync executor 2016-05-06 10:16:42 -07:00
Alec Aivazis
1d44f5f918 updated to reflect changes to graphql-core 2016-05-06 08:55:17 -07:00
Jon Dugan
9c2d571aae py 3.4/3.5 don't like the leading 0 2016-04-29 14:21:18 -05:00
Jon Dugan
f325964a9e one more linting fix 2016-04-29 14:16:31 -05:00
Jon Dugan
a158f4e002 liniting fixes 2016-04-29 14:10:28 -05:00
Jon Dugan
8e3b9b430e improve iso8601 handling 2016-04-29 13:58:49 -05:00
evalette
0960b7914d add test for sqlalchemy and identifier meta attribute 2016-04-13 14:39:11 +02:00
evalette
1f9252f26a add meta option identifier to SQLAlchemy nodes 2016-04-13 14:06:31 +02:00
karec
efa67fa1db start implement custom identifier 2016-04-12 22:24:12 +02:00
Syrus Akbary
1b39992dbe Merge branch 'refs/heads/master' into features/django-fields
Conflicts:
	graphene/contrib/django/converter.py
	graphene/core/classtypes/enum.py
2016-04-02 20:06:44 -07:00
Syrus Akbary
3bef8762e7 Improved Python syntax to be PEP8 complaint 2016-04-02 19:40:48 -07:00
Syrus Akbary
12c69c0635 Added DateTime custom Scalar 2016-04-02 19:37:28 -07:00
Syrus Akbary
81560df6a1 Added JSONString custom scalar 2016-04-02 19:19:40 -07:00
Syrus Akbary
ca0d1a3d7a Added RangeField conversion and testing 2016-04-02 18:58:36 -07:00
Syrus Akbary
7f96500353 Added support for converting Postgres fields 2016-04-02 18:02:13 -07:00
Syrus Akbary
a1dd2b6293 Added FileField and ImageField conversion. Fixed #137 2016-04-02 16:24:32 -07:00
Syrus Akbary
e1a693e57c Added Enum type ability to be mounted as field or argument 2016-04-02 00:14:09 -07:00
Syrus Akbary
68a9fb9fc4 Improved Django field choice converter 2016-04-01 23:43:42 -07:00
Syrus Akbary
bd88f2327e Added to_const str converter utility 2016-04-01 23:39:10 -07:00
Syrus Akbary
1f548f188d Fixed default query value in SQLAlchemyConnectionField. Fixed #133 2016-03-30 00:12:59 -07:00
Syrus Akbary
21ec1163b9 Added relay PageInfo, Connection super constructors. Fixed #131 2016-03-29 23:26:33 -07:00
Michael Elsdörfer
653e67de97 Allow empty list in SQLAlchemyConnectionField.
Custom resolve()'s empty list return value should take precedence over SQLAlchemyConnectionField default query.
2016-03-06 16:01:50 +03:30
Syrus Akbary
70b6cbdf22 Merge pull request #90 from gwind/relay-PageInfo
change page_info to fit relay's limitation
2016-03-01 15:17:01 -08:00
Syrus Akbary
e6f229ffb9 Fixed django_connection defaults 2016-02-12 19:13:21 -08:00
Syrus Akbary
56e1b2b638 Fixed default in DjangoConnection 2016-02-12 18:59:17 -08:00
Syrus Akbary
e05b9ea79d Fixed raw_sql tracking 2016-02-12 18:59:02 -08:00
Syrus Akbary
50ed91326a Fixed tests. Improved sql debugging with params 2016-02-05 18:59:23 -08:00
Syrus Akbary
342511cda0 Merge branch 'master' of github.com:graphql-python/graphene 2016-02-05 18:30:08 -08:00
Syrus Akbary
314703d7b5 Improved querying and slicing in DjangoConnectionFields and inherited. Fixed #108 2016-02-05 18:27:27 -08:00
Syrus Akbary
c5b15cec2f Removed the collision with django-debug-toolbar tracking. #108 2016-02-04 14:23:59 -08:00
Syrus Akbary
7b06e01cb3 Fixed ClassTypes when returned as instance. Fixed #105 2016-02-04 13:47:03 -08:00
Syrus Akbary
31eae0aee3 Improve Django field conversion real-life tests 2016-02-04 09:25:18 -08:00
Syrus Akbary
e9e51a0bd4 Merge pull request #100 from graphql-python/features/enum
Add Enum type
2016-02-02 20:13:20 -08:00
Syrus Akbary
9f57b459ec Fixed tests on source 2016-02-02 19:07:34 -08:00
Syrus Akbary
141beb0364 Merge pull request #102 from graphql-python/features/source
Added source argument in Fields
2016-02-02 19:05:30 -08:00
Syrus Akbary
a66f6f2990 Added source argument to Fields. Fixed #101 2016-02-02 19:00:36 -08:00
Syrus Akbary
cb812958a2 Added maybe_func utility 2016-02-02 18:52:00 -08:00
Syrus Akbary
b3693e3702 Added support for sqlalchemy choice 2016-02-01 14:02:38 -08:00
Syrus Akbary
7aa7c5a7bf Added support for mapping Django Fields with choices to Enum types. Fixed #95 2016-02-01 13:54:37 -08:00
Syrus Akbary
407b9ea550 Added Enum class type 2016-02-01 13:28:52 -08:00
Markus Padourek
d971fbb4dc Update to use partial instead of lambda function 2016-02-01 18:50:30 +00:00
Markus Padourek
e7b5358604 Fix UnionType resolver
Fixes #98
2016-02-01 15:57:28 +00:00
Syrus Akbary
235a24e966 Added support for deprecated fields using deprecation_reason. Fixed #93 2016-01-28 10:22:44 -08:00
Jian Li
14fbfaa427 change page_info to fit relay's limitation 2016-01-26 20:35:12 +08:00
Syrus Akbary
96c1726407 Added SQLAlchemy documentation and fixed installs 2016-01-23 14:40:08 -08:00
Syrus Akbary
bc6240d378 Improved connection resolver from list 2016-01-22 22:30:25 -08:00
Syrus Akbary
b86b5a7385 Merge branch 'refs/heads/master' into sqlalchemy 2016-01-22 21:18:35 -08:00
Syrus Akbary
b281bff226 Added global_id method to Nodes 2016-01-22 21:18:20 -08:00
Syrus Akbary
6f7e00af95 Improved query support 2016-01-22 19:21:50 -08:00
Syrus Akbary
017f6ae2a1 Updated SQLAlchemy integration in graphene 2016-01-22 18:31:27 -08:00
Syrus Akbary
961cb1ad83 Merge branch 'refs/heads/master' into sqlalchemy 2016-01-22 10:55:57 -08:00
Syrus Akbary
a0ac884bb2 Set clientMutationId to be camelCase as defined by the graphql relay specification. Fixed #86 2016-01-22 10:42:21 -08:00
Syrus Akbary
f29fe5c8fd Fixed inheritance from abstract types. Fixed #84 2016-01-21 12:39:45 -08:00
Tomek Główka
2e20cd8059 Fixed NodeField object_type string name argument. 2016-01-15 01:49:25 +01:00
Syrus Akbary
112006c211 Fixed PEP8 errors 2016-01-13 18:48:30 -08:00
Syrus Akbary
2acd8691cf Improve imports if not django_filters installed. Improved Django command fixing warning in Django 1.8+ 2016-01-13 18:30:46 -08:00
Syrus Akbary
20a493b9d1 Fixed double underscore converter 2016-01-11 17:27:20 +01:00
Syrus Akbary
f68763b822 Fixed many to many relations in Django model 2016-01-11 17:13:25 +01:00
Syrus Akbary
84dbc58115 Improved Django Compatibility. Added graphql_schema command tests #73 2016-01-03 18:51:02 +01:00
Syrus Akbary
70a4bd13c1 Fixed non-removed code from django filters and some PEP8 errors 2016-01-02 21:35:36 +01:00
Syrus Akbary
69062aa6d1 Improved PEP8 syntax and order imports 2016-01-02 21:19:15 +01:00
Syrus Akbary
e1145b88fb Improved resolvers in Django 2016-01-02 21:13:54 +01:00
Syrus Akbary
33c58f6cfa Improved default field getter and improved relay connection resolver 2016-01-02 21:04:27 +01:00
Adam Charnock
b44bae115d Adding test to reproduce bug whereby the FilterConnectionResolver does not correctly traverse relationships 2015-12-29 16:57:41 +00:00
Adam Charnock
58421cda14 Merge remote-tracking branch 'graphql/master' into feature/django 2015-12-29 13:30:05 +00:00
Syrus Akbary
062c0f9ed5 Merge pull request #73 from lightning18/dump-schema
Implement Django command for dumping schema.json
2015-12-18 19:24:22 +01:00
Kevin Abiera
73c04f22c8
Implement Django command for dumping schema.json
* Implement Django `./manage.py graphql_schema`

* Required to have 'graphene.django.contrib' in INSTALLED_APPS setting

* Introduces two new optional settings GRAPHENE_SCHEMA and
  GRAPHENE_SCHEMA_OUTPUT

* GRAPHENE_SCHEMA for the Django app containing the schema

* GRAPHENE_SCHEMA_OUTPUT for the output file (defaults to schema.json)

* Use `./manage.py graphql_schema -h` for help in command line
2015-12-18 20:57:24 +08:00
Kevin Abiera
6c0bc4c545
Add support for GenericIPAddressField 2015-12-12 22:16:20 +08:00
Syrus Akbary
c7026329d3 Moved django filter tests 2015-12-12 00:54:51 -08:00
Syrus Akbary
8eaa2cfc49 Fixed compatibility with Django 1.6, 1.7, 1.8 and 1.9 2015-12-12 00:51:31 -08:00
Syrus Akbary
35d78320e8 Simplified filter in types and fields. All tests passing 2015-12-11 23:39:41 -08:00
Syrus Akbary
b4f7df3c9d Fixed argument getter in django filters tests 2015-12-11 15:43:22 -08:00
Syrus Akbary
689db2c70e Fixed incompatible syntax in Python 2.7 2015-12-11 11:03:49 -08:00
Syrus Akbary
cdfe7bd33e Merge branch 'refs/heads/master' into feature/adam-django 2015-12-11 10:59:55 -08:00
Syrus Akbary
9dcd7986b8 Improved testing on fields 2015-12-11 10:53:05 -08:00
Syrus Akbary
2eea03cb62 Improved name in Field. Could be an Argument 2015-12-11 10:42:10 -08:00
Syrus Akbary
930f084912 Fixed DjangoDebugPlugin. Improved Django views 2015-12-10 22:11:43 -08:00
Syrus Akbary
c8f4c13822 Improved plugin execution 2015-12-09 19:44:35 -08:00
Syrus Akbary
b3b440f837 Merge branch 'refs/heads/features/plugins-autocamelcase' into features/django-debug 2015-12-09 19:28:43 -08:00
Syrus Akbary
dca435a220 Improved plugin system 2015-12-09 19:26:46 -08:00
Syrus Akbary
dd5b26e6ed Improved debug plugin structure 2015-12-06 16:51:37 -08:00
Syrus Akbary
bd35fcee6c Merge branch 'refs/heads/features/plugins-autocamelcase' into features/django-debug 2015-12-06 16:39:32 -08:00
Syrus Akbary
cd5d9b8eea Improved plugin structure based on @adamcharnock suggestions 2015-12-06 16:34:47 -08:00
Syrus Akbary
730de3f289 Merge branch 'refs/heads/master' into features/plugins-autocamelcase
Conflicts:
	graphene/core/types/argument.py
2015-12-06 16:04:44 -08:00
Syrus Akbary
2724025a5b Improved ScalarTypes code 2015-12-06 15:53:56 -08:00
Syrus Akbary
37a454b831 Renamed BaseType to InstanceType for code clarity 2015-12-06 15:49:54 -08:00
Syrus Akbary
9e1dd8e314 Merge branch 'refs/heads/master' into features/plugins-autocamelcase
Conflicts:
	graphene/core/schema.py
2015-12-06 15:43:57 -08:00
Syrus Akbary
5e708cc919 Improved tests. Improved schema.type getter. Remove duplicated Scalar code 2015-12-06 15:32:31 -08:00
Syrus Akbary
9ea10f562c Fixed lint errors 2015-12-06 14:37:44 -08:00
Syrus Akbary
c9e7f67ff9 Improved logic in GroupNamedType 2015-12-06 14:36:47 -08:00
Syrus Akbary
a153a01f6b Improved debug using plugin structure 2015-12-06 03:59:44 -08:00
Adam Charnock
3d4f593300 DjangoFilterConnectionField now extends ConnectionField, as DjangoConnectionField is now deprecated 2015-12-06 10:38:28 +00:00
Syrus Akbary
2ad5bc203a Merge branch 'refs/heads/features/plugins-autocamelcase' into features/django-debug 2015-12-06 02:37:21 -08:00
Syrus Akbary
12e4e2c006 Added Plugins structure. Added option in schema for auto camel case or not. 2015-12-06 02:35:17 -08:00
Adam Charnock
93e758dc13 Reverting previous commit following comments by @syrusakbary 2015-12-06 10:08:10 +00:00
Syrus Akbary
ec3f292593 Refactored arguments and fields logic 2015-12-06 01:51:03 -08:00
Syrus Akbary
21dffa4aa8 Moved fields to a named group 2015-12-06 01:34:56 -08:00
Syrus Akbary
fae376cbb0 Moved arguments to a named group 2015-12-06 01:01:23 -08:00
Adam Charnock
880807dd2f Replacing django-filter detection with GRAPHENE_ENABLE_FILTERING setting
Also moving GRAPHENE_ORDER_BY_FIELD into settings.py which
centralises use of django settings and their default values
2015-12-05 13:06:44 +00:00
Adam Charnock
0f35f4de8d Correcting definition of 2015-12-05 11:20:48 +00:00
Adam Charnock
66189be4a9 Filtering now available on nodes without defining fields 2015-12-05 11:15:17 +00:00
Adam Charnock
afd7aa8d72 Merge branch 'master' into feature/django 2015-12-05 09:10:38 +00:00
Adam Charnock
bfd43bc995 Flake8 fixes 2015-12-05 09:03:19 +00:00
Adam Charnock
1988519536 Fixes to how singledispatch is imported 2015-12-05 09:01:11 +00:00
Syrus Akbary
2f6fb89f23 Fixed List, NonNull accessors as functions instead of properties 2015-12-04 19:51:44 -08:00
Syrus Akbary
ee19445290 Improved queryset getter for use .count instead of len 2015-12-04 19:28:20 -08:00
Adam Charnock
bbbf688449 Renaming order -> order_by (and fixing assert_not_orderable()) 2015-12-04 21:39:55 +00:00
Adam Charnock
f616b597ac Updating form converter method names to make more sense 2015-12-04 18:55:05 +00:00
Adam Charnock
3a23c1f940 Filtering options will now be read from the destination node's Meta data 2015-12-04 18:41:20 +00:00
Adam Charnock
b4b42db73e Updating imports to work when singledispatch is available natively 2015-12-04 17:48:33 +00:00
Adam Charnock
c93492bacb pep8 fixes 2015-12-04 17:03:29 +00:00
Adam Charnock
818b910991 Now supports django 1.9 2015-12-04 15:46:48 +00:00
Adam Charnock
c42d4a763d Removing debug line 2015-12-04 14:10:31 +00:00
Adam Charnock
79e1b1c996 Removing unused imports 2015-12-04 14:10:06 +00:00
Adam Charnock
e7d7fad068 Remove django app loading which is no longer required post merge 2015-12-04 13:58:39 +00:00
Adam Charnock
7d2ec21855 Merge branch 'master' into feature/django 2015-12-04 13:58:00 +00:00
Adam Charnock
713e148f29 Work in progress on loading django models for tests 2015-12-04 13:57:01 +00:00
Syrus Akbary
3586fdfb77 Improvex syntax 2015-12-04 02:41:47 -08:00
Syrus Akbary
bee0af1125 Improved django debug 2015-12-04 02:34:12 -08:00
Syrus Akbary
28414955a2 Improved resolver function decorators 2015-12-03 23:41:28 -08:00
Syrus Akbary
967a9d2d03 Fixed old DjangoConnectionField usage 2015-12-03 23:23:32 -08:00
Syrus Akbary
14439155ee Initial version debug schema in django 2015-12-03 22:22:49 -08:00
Syrus Akbary
0fa7f5c9aa Improved tests 2015-12-03 21:49:10 -08:00
Syrus Akbary
f4cfd7dc8a Improved package imports 2015-12-03 20:50:14 -08:00
Adam Charnock
be6b2bf290 Adding comments to filter_for_reverse_field() 2015-12-04 01:57:43 +00:00
Adam Charnock
64ec0ca94f Adding support for filtering on to-many fields 2015-12-03 23:13:37 +00:00
Adam Charnock
ed8eac9cdf removing stray commented line 2015-12-03 21:16:09 +00:00
Adam Charnock
6e07ef0c38 Ordering parameter now called 'order' rather than 'o'
This can be customsied via the GRAPHENE_ORDER_BY_FIELD setting,
or by extending GrapheneFilterSet.

I'm open to this being called 'order_by'.
2015-12-03 21:07:44 +00:00
Adam Charnock
375dfcbcc2 Fixing flake8 errors 2015-12-03 20:48:29 +00:00
Adam Charnock
fb45a83925 Moving django-filter dependent code into graphene.contrib.django.filter
Graphene should now run fine without django-filter. Tests will
also run without django-filter. However, I'm leaving it as a
requirement in setup.py's `tests_require` setting as testing
without it is probably not to be encouraged.
2015-12-03 20:01:37 +00:00
Adam Charnock
3709f9450b Refactoring filterset creation logic
I have moved it from `DjangoFilterConnectionField` and pushed it
down into `FilterConnectionResolver` where I think it makes
more sense for it to live.

I have also pulled out `get_filtering_args_from_filterset()` as
a utility method.
2015-12-03 19:22:23 +00:00
Adam Charnock
70024ed0eb Fixes for python 2.7 & PyPy 2015-12-03 18:21:28 +00:00
Adam Charnock
70cedc046f Adding support for filtering by global ID
This is supported for AutoFields, OneToOneFields, and ForeignKey.
I have also added the GrapheneFilterSet base class. This provides
customsiations needed for Graphene. However, making developers
tie their FilterSets to Graphene would not be ideal as it would
prevent their use elsewhere. I therefore wrap any FilterSets
provided to Graphene with this additional functionality.

See `setup_filterset()` for how this is done. Such FilterSets
are also created by `custom_filterset_factory()` (in times
when a filterset is implicitly required via the `fields`
or `order_by` params passed to `DjangoFilterConnectionField`.
2015-12-03 17:55:41 +00:00
Adam Charnock
463c1f98df Relocating UUID form field import code from converter.py to form_converter.py 2015-12-03 13:37:29 +00:00
Adam Charnock
49258827f8 DjangoFilterConnectionField now accepts fields, order_by, and extra_filter_meta 2015-12-03 13:32:43 +00:00
Adam Charnock
7bfeb086a4 Adding filter tests 2015-12-03 12:52:15 +00:00
Adam Charnock
b9f93918c8 Simplifying get_filterset_kwargs() as ImproperlyConfigured cannot be raised 2015-12-03 12:50:00 +00:00
Adam Charnock
930f7179d0 Adding tests for SimpleQuerySetConnectionResolver 2015-12-03 12:08:22 +00:00
Adam Charnock
e270792674 No need to create a Schema in test_fields.py 2015-12-03 11:42:08 +00:00
Adam Charnock
0c7be5c86e pep8 fixes 2015-12-03 11:30:14 +00:00
Adam Charnock
d959cf5a84 Adding tests for DjangoFilterConnectionField 2015-12-03 11:09:34 +00:00
Adam Charnock
4a087ecb24 Adding tests for form field conversion 2015-12-03 10:46:43 +00:00
Adam Charnock
a5d73ac211 pep8 fixes 2015-12-03 10:07:21 +00:00
Adam Charnock
6e63e7b42d Work on Django integration as per #48
Discussion can be found here:
https://github.com/graphql-python/graphene/issues/48

Original gist can be found here:
https://gist.github.com/adamcharnock/ad051b419d4c613d40fe
2015-12-03 10:05:59 +00:00
Syrus Akbary
d251a52442 Fixed Python3 import error 2015-12-02 23:54:45 -08:00
Syrus Akbary
df9dd33c74 Fixed Python3 errors 2015-12-02 23:48:40 -08:00
Syrus Akbary
9b839f19e5 Fixed lint errors 2015-12-02 23:46:49 -08:00
Syrus Akbary
b417a65f19 Fixed options tests 2015-12-02 23:42:22 -08:00
Syrus Akbary
f5837ac4f3 Improved classtypes django support 2015-12-02 23:36:51 -08:00
Syrus Akbary
5b3000f734 Improved classtypes relay support 2015-12-02 22:47:37 -08:00
Syrus Akbary
8abcaff02b Improved classtypes core support 2015-12-02 21:11:24 -08:00
Syrus Akbary
398f7da24c Added FieldsClassType inheritance 2015-12-02 20:44:02 -08:00
Syrus Akbary
afc5e2720b Added NonNull, List definitions to ClassTypes 2015-12-02 20:28:53 -08:00
Syrus Akbary
3363f588fe First working version class types 2015-12-02 20:11:28 -08:00
Syrus Akbary
e78936c424 Fixed tests 2015-12-02 01:33:41 -08:00
Syrus Akbary
5686008660 Removed unused empty class 2015-12-01 21:16:53 -08:00
Syrus Akbary
9a198c8c86 Added abstract ObjectType definition. Fixed #55 2015-11-30 23:14:41 -08:00
Jeremy Feinstein
9a0b33ca77 Fixing it up to use the declarative API 2015-11-25 20:31:49 -05:00
Syrus Akbary
7340d80fa6 Changed type resolver function name to _resolve_type. Fixed #50 2015-11-25 11:33:32 -08:00
Syrus Akbary
a0d8b7162a Remove blinker dependency 2015-11-24 23:57:27 -08:00
Syrus Akbary
fe860774e8 Fixed return ConnectionType instance in ConnectionField resolver 2015-11-22 16:04:14 -08:00
Syrus Akbary
c28b046606 Added DjangoConnection to the public 2015-11-21 19:04:58 -08:00
Syrus Akbary
79c7d070db Fixed isort 2015-11-21 18:47:40 -08:00
Jeremy Feinstein
487543206c Adding support for sqlalchemy 2015-11-21 15:21:40 -05:00
Syrus Akbary
137ba49868 Removed LazyMap 2015-11-21 10:58:49 -08:00
Syrus Akbary
c521e181c8 Simplified Django grapheme types removing LazyMap 2015-11-21 10:53:42 -08:00
Syrus Akbary
732b1aec1b Update Connections 2015-11-20 16:12:11 -08:00