ilslv
bc66a2d898
Upgrade actix-web
beta versions ( #995 )
2021-11-23 10:49:55 +02:00
Kai Ren
a3fda7363d
Rework codegen for GraphQL objects and subscriptions ( #971 , #421 )
...
- preserve and reuse defined impl blocks in #[graphql_object] and #[graphql_subscription] macros expansion
- allow renaming `ScalarValue` type parameter in expanded code via `scalar = S: ScalarValue` syntax
Additionally:
- rename `rename` attribute's argument to `rename_all`
- support `rename_all` in #[graphql_interface] macro
2021-08-11 17:41:49 +03:00
Christian Legnitto
1146a01331
Use actix betas to allow publishing on crates.io ( #954 )
2021-07-06 16:23:41 -07:00
Jordão Rodrigues Oliveira Rosario
739cc3bfc2
Upgraded tokio, warp, hyper and actix ( #912 )
...
* Upgraded tokio, warp, hyper and actix
* Code formatting
* actix-web temporary version fix specification
* Error handling fix on juniper_rocket
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-06-28 20:22:45 -10:00
Kai Ren
a4871887bb
Default to generic ScalarValue in #[graphql_object] macro ( #779 )
...
* Change codegen ScalarValue defaults for #[graphql_object] macro
* Fix integration tests
* Fix codegen failure tests
* Fix 'juniper' crate tests
* Fix integration crates tests
* Fix 'juniper_benchmarks' crate
* Fix examples
* Fix Book
* Fix
* Add CHANGELOG entry
* Some Book corrections
* Fix
* Bootstrap coercion machinery
* Reimpl coercion
* Correct tests, vol.1
* Correct tests, vol.2
* Correct tests, vol.3
* Correct tests, vol.4
* Correct tests, vol.5
* Fix coercion for subscriptions
* README fixes
Co-authored-by: Christian Legnitto <christian@legnitto.com>
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-11-06 18:15:18 -08:00
Chris
cd66bdb450
Add ability to distinguish between implicit and explicit null ( #795 )
...
* add Nullable to distinguish between implicit and explicit null
* cargo fmt
* add page to book
* address comment
2020-10-23 19:21:37 -04:00
Kai Ren
cbf16c5a33
Make interfaces great again! ( #682 )
...
* Bootstrap
* Upd
* Bootstrap macro
* Revert stuff
* Correct PoC to compile
* Bootstrap #[graphql_interface] expansion
* Bootstrap #[graphql_interface] meta parsing
* Bootstrap #[graphql_interface] very basic code generation [skip ci]
* Upd trait code generation and fix keywords usage [skip ci]
* Expand trait impls [skip ci]
* Tune up objects [skip ci]
* Finally! Complies at least... [skip ci]
* Parse meta for fields and its arguments [skip ci]
- also, refactor and bikeshed new macros code
* Impl filling fields meta and bootstrap field resolution [skip ci]
* Poking with fields resolution [skip ci]
* Solve Rust's teen async HRTB problems [skip ci]
* Start parsing trait methods [skip ci]
* Finish parsing fields from trait methods [skip ci]
* Autodetect trait asyncness and allow to specify it [skip ci]
* Allow to autogenerate trait object alias via attribute
* Support generics in trait definition and asyncify them correctly
* Temporary disable explicit async
* Cover arguments and custom names/descriptions in tests
* Re-enable tests with explicit async and fix the codegen to satisfy it
* Check implementers are registered in schema and vice versa
* Check argument camelCases
* Test argument defaults, and allow Into coercions for them
* Re-enable markers
* Re-enable markers and relax Sized requirement on IsInputType/IsOutputType marker traits
* Revert 'juniper_actix' fmt
* Fix missing marks for object
* Fix subscriptions marks
* Deduce result type correctly via traits
* Final fixes
* Fmt
* Restore marks checking
* Support custom ScalarValue
* Cover deprecations with tests
* Impl dowcasting via methods
* Impl dowcasting via external functions
* Support custom context, vol. 1
* Support custom context, vol. 2
* Cover fallible field with test
* Impl explicit generic ScalarValue, vol.1
* Impl explicit generic ScalarValue, vol.2
* Allow passing executor into methods
* Generating enum, vol.1
* Generating enum, vol.2
* Generating enum, vol.3
* Generating enum, vol.3
* Generating enum, vol.4
* Generating enum, vol.5
* Generating enum, vol.6
* Generating enum, vol.7
* Generating enum, vol.8
* Refactor juniper stuff
* Fix juniper tests, vol.1
* Fix juniper tests, vol.2
* Polish 'juniper' crate changes, vol.1
* Polish 'juniper' crate changes, vol.2
* Remove redundant stuf
* Polishing 'juniper_codegen', vol.1
* Polishing 'juniper_codegen', vol.2
* Polishing 'juniper_codegen', vol.3
* Polishing 'juniper_codegen', vol.4
* Polishing 'juniper_codegen', vol.5
* Polishing 'juniper_codegen', vol.6
* Polishing 'juniper_codegen', vol.7
* Polishing 'juniper_codegen', vol.8
* Polishing 'juniper_codegen', vol.9
* Fix other crates tests and make Clippy happier
* Fix examples
* Add codegen failure tests, vol. 1
* Add codegen failure tests, vol. 2
* Add codegen failure tests, vol.3
* Fix codegen failure tests accordingly to latest nightly Rust
* Fix codegen when interface has no implementers
* Fix warnings in book tests
* Describing new interfaces in Book, vol.1
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-10-05 21:21:01 -10:00
Christian Legnitto
61bc35251f
Fix book tests ( #711 )
2020-07-18 15:24:33 -10:00
Christian Legnitto
61a5a747f1
Update subscriptions.md
2020-07-14 21:02:30 -10:00
Julio Daniel Reyes
91a3353983
Update dataloader explanation code ( #661 )
2020-05-13 16:37:14 -10:00
Christian Legnitto
892619a35b
Fix typos in dataloader docs
2020-04-25 20:26:16 -10:00
Jordão Rodrigues Oliveira Rosario
7e8724751f
Initial implementation of Subscription Docs ( #609 )
...
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-04-16 20:16:00 -10:00
nWacky
eb941e509a
Add subscription support ( #433 )
...
Co-authored-by: tyranron <tyranron@gmail.com>
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-03-18 20:31:36 -07:00
Christian Legnitto
e9b8aa2c38
Rename execute -> execute_sync, execute_async -> execute ( #556 )
2020-03-09 22:40:26 -07:00
James H
df2740393a
Add dataloader explaination to book ( #518 )
2020-02-12 23:45:15 -07:00
Christoph Herzog
ce3cf45ca9
Rename object
proc macro to graphql_object
2019-11-16 02:57:48 +01:00
Christoph Herzog
29025e6cae
Rename impl_object to object.
2019-05-13 21:15:14 +02:00
Christoph Herzog
693405afa5
(book) impl_object refactor
2019-05-12 10:36:30 +02:00
Muriel Silveira
a75396846d
Fix broken docs links
...
Many links on the documentation were broken because they
were not using the correct relative paths.
2019-04-10 02:19:26 +02:00
Christian Legnitto
ba8cfbd105
Add support for the canonical introspection query
...
Fixes https://github.com/graphql-rust/juniper/issues/307 .
2019-04-04 09:11:20 +02:00
Christoph Herzog
9623e4d326
(book) Update and fix book compilation and tests
...
* Use mdbook for building the book
* Update book config
* Update book hierarchy to work properly with mdbook
This necessitated adding place-holder index pages
since mdbook does not suppoert stand-alon menu items
* Update tests to use 2018 edition
* Fix various compilation errors in the tests
2019-03-08 11:47:13 +01:00