Sunli
7ecc91f3f0
Federation v1 is no longer supported
2022-09-22 23:34:49 +08:00
aidan coyne
6575fd6741
Revert "default to printing the applicaiton of the link directive"
...
This reverts commit 64e6e7e7fa
.
2022-09-22 09:48:10 -05:00
aidan coyne
64e6e7e7fa
default to printing the applicaiton of the link directive
...
change to providing a method to opt-out of printing it.
2022-09-20 08:12:54 -05:00
aidan coyne
89dca3e125
clean up some mistakes, ensure existing tests pass
2022-09-19 15:43:46 -05:00
aidan coyne
9e105f2628
implement a simple approach to using the link directive
...
this is probably the simple way to get the link directive in place for
federation 2 support - simply add a flag to the registry, and print out
a hardcoded link directive configured for the current needs of
async-graphql.
2022-09-19 15:43:46 -05:00
Nicolas Moutschen
2ffee68ad4
feat: add @tag support
2022-08-22 11:44:02 +02:00
aidan coyne
2bac140833
define override directive on fields
...
* define the directive field on the field struct
* implement printing it on the federation sdl
* update the derive stuff
* add a test
2022-08-20 15:22:12 -05:00
Nicolas Moutschen
619013d90c
feat: @inaccessible support
2022-08-18 11:40:04 +02:00
Damien Pontifex
4bdd28d966
additions so type can also be shareable as well as field
2022-08-17 10:36:00 +08:00
Damien Pontifex
9e9493e232
first passing build with shareable
2022-08-17 09:29:43 +08:00
Sunli
37f18855e3
Clippy clean
2022-08-12 14:05:46 +08:00
Sunli
b4cf06fd9b
Fixes #946
2022-06-10 18:55:12 +08:00
Sunli
92234d7a75
Add Schema::build_with_ignore_name_conflicts
method to specifies a list to ignore type conflict detection.
2022-05-24 20:08:35 +08:00
Sunli
f2bac81a2f
Remove code and tests related oneof fields. #915
2022-05-07 16:16:01 +08:00
Sunli
4e81285756
Fixes #911
2022-05-06 09:28:57 +08:00
Sunli
8011b9a120
Add some options for exporting SDL. #877
2022-05-05 20:09:35 +08:00
Sunli
93763997af
Rework connection types
2022-04-19 19:18:06 +08:00
Paul Nguyen
0ebcccd8d9
Allow introspection only schemas
2022-04-18 21:25:02 +02:00
Sunli
9b0573a8bd
Panics when the same Rust type has the same name. #880
2022-03-30 20:54:49 +08:00
Sunli
632529ee3e
Add support for oneof field on object. #766
2022-03-04 21:24:17 +08:00
Sunli
b84129c650
Add OneOfObject
macro to support for oneof input object. #766
2022-02-17 19:35:55 +08:00
Sunli
334307b2c2
Add Union
and Interface
support for trait objects. #780
...
Clippy clean
2022-01-11 09:35:09 +08:00
Anthony Griffon
f387eb1005
fix: issue when empty with federation spec on _Entity node
...
Signed-off-by: Anthony Griffon <anthony@griffon.one>
2021-12-22 18:16:56 +01:00
Edward Rudd
dd548bb046
correct adding implicit interfaces to the schema introspection
...
If an interface is added manually (as it is not directly referenced by any type) it was not showing up in the introspection.
Now it will be exposed if it is visible and references already accessible types
2021-12-04 19:33:15 -05:00
Sunli
81e4cc2142
Custom directive
2021-11-20 09:04:46 +08:00
Sunli
e0c557a1a6
Add DirectivesUnique rule
2021-11-18 20:14:56 +08:00
Sunli
8750d8d34b
Rework validators
2021-11-14 21:09:14 +08:00
Sunli
0be420d47b
Merge branch 'master' into async-graphql-v3
2021-11-13 09:16:24 +08:00
Sunli
ba66e1406e
Fix Federation entity union is empty during schema introspection. #700
2021-11-13 09:08:55 +08:00
Sunli
732e232a8e
Hide types that are not referenced by visible fields. #698
2021-11-12 07:24:04 +08:00
Sunli
20b73e06f4
Move the methods of the Type
trait to InputType
and OutputType
.
2021-11-12 07:23:05 +08:00
Sunli
0f1e5a19fd
If a GraphQL name conflict is detected when creating schema, it will cause panic. #499
2021-11-08 10:25:31 +08:00
Sunli
3306f85a8a
Subscription typename - [GraphQL - October 2021] #681
2021-11-02 20:35:05 +08:00
Sunli
91bb9e81fb
Specified By - [GraphQL - October 2021] #677
2021-11-02 20:35:05 +08:00
Miaxos
a3b7777516
feat: add visible macro argument for union type
2021-10-11 21:54:50 +00:00
Sunli
9046b288ad
Sort the types in the exported SDL by name. #577
2021-07-17 10:13:42 +08:00
Sunli
abf4d5ffb6
Fix SDL print is not stable. #547
2021-07-12 11:14:26 +08:00
Sunli
7cb30db2f2
Fix the bug that MergedObject
may cause panic. #539
2021-06-21 09:48:19 +08:00
Sunli
deeedf11a6
Clippy clean
2021-05-07 10:14:05 +08:00
Sunli
f7e05b78a3
Fix stack overflow during Registry::create_type for recursive type while running Schema::build. #474
2021-04-08 11:27:06 +08:00
Sunli
6aa191fba5
Add secret attribute for arguments, they will not appear in the log. #463
2021-04-07 19:40:19 +08:00
Sunli
39609cf116
Remove SchemaBuilder::override_name
method. #437
2021-03-31 16:54:57 +08:00
Sunli
aa1e72e68e
Add SchemaBuilder::enable_subscription_in_federation
method. #449
2021-03-20 17:22:18 +08:00
Sunli
a51abb7284
Add SchemaBuilder::override_name
method. #437
2021-03-09 18:07:18 +08:00
Sunli
baa837f2ca
Allow the deprecation
attribute to have no reason.
2021-02-27 11:59:58 +08:00
Sunli
cd8da606f2
When introspection is disabled, introspection related types are no longer registered.
2021-02-23 12:49:41 +08:00
Sunli
bd3784e402
Rustfmt
2021-02-13 09:28:05 +08:00
Sunli
c547252121
#[Object] on impl dyn TraitObj. #381
2021-01-10 11:21:47 +08:00
Sunli
8bc33cfd44
Clippy clean
2021-01-04 08:18:28 +08:00
Sunli
ec82e64a39
Improve depth and complex.
2020-12-18 18:56:28 +08:00