tyranron
8783496c68
Mention an example of migration from graphql-interface! to #[graphql_interface] in README
2020-11-14 14:48:53 +01:00
Kai Ren
3472fe6d10
Fix attributes naming on fields and arguments for interfaces and unions ( #806 )
...
Additionally:
- revive macros/tests/object
- revive executor_tests/interfaces_unions
2020-11-14 15:41:01 +02:00
tyranron
bcbf44ecbd
Make GraphQL interface value enum variants named after the type they contain
2020-11-09 14:07:33 +01:00
tyranron
4dbd740fef
Fix missing docs for enum variants generated for dispatching GraphQL interface values
2020-11-09 13:40:24 +01: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
Kunjan Dalal
4c40826eff
explicit origin is required with new CORS ( #802 )
...
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-11-04 20:44:16 -08:00
Lucas Pickering
200896053a
Fix #500 (crash from look_ahead on nested fragments) ( #800 )
2020-11-04 15:11:25 -08:00
David Pedersen
eca049ac28
Implement IntoFieldError
for Infallible
( #796 )
...
Makes it possible to use `Result<T, Infallible>` as your return type
from resolvers, which can be handy sometimes.
2020-10-29 06:39:59 -07:00
Christian Legnitto
f6ec735ba9
Uncomment tests that now work ( #797 )
...
* Uncomment tests that now work
* Fix formatting
2020-10-28 20:40:35 -07: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
tyranron
61d1365b15
Test GraphQL scalar implementation using custom ScalarValue ( #791 )
2020-10-23 12:22:37 +02:00
dependabot-preview[bot]
3e4cf680e2
Upgrade 'actix-cors' crate to 0.5 version ( #792 )
...
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: tyranron <tyranron@gmail.com>
2020-10-20 12:57:14 +03:00
Kai Ren
421b343398
Remove redundant extern crate
usages ( #790 )
...
Additionally:
- remove obsolete benches in benches/ dir
- restore benches in juniper/benches/ dir
2020-10-19 19:42:27 +03:00
nirmangupta
5832b3696d
Support chrono-tz::Tz GraphQL scalar ( #519 )
...
Co-authored-by: Nirman Gupta <nirmangupta@gmail.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
2020-10-19 15:30:17 +03:00
dependabot-preview[bot]
31d339b3a9
Upgrade 'criterion' crate to 0.3 version ( #703 )
...
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
Co-authored-by: tyranron <tyranron@gmail.com>
2020-10-19 12:55:42 +03:00
dependabot-preview[bot]
dd69375e59
Upgrade 'env_logger' crate to 0.8 version ( #789 )
...
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-19 12:23:17 +03:00
Igor Pashev
c964fd805c
Allow disabling case conversion ( #765 )
2020-10-13 12:34:36 -04:00
Stijn Frishert
68210f54ca
impl Display for ID ( #783 )
2020-10-10 07:17:33 -07:00
dependabot-preview[bot]
746aff34a5
Update actix-cors requirement from 0.3.0 to 0.4.1 ( #778 )
...
Updates the requirements on [actix-cors](https://github.com/actix/actix-extras ) to permit the latest version.
- [Release notes](https://github.com/actix/actix-extras/releases )
- [Commits](https://github.com/actix/actix-extras/compare/cors-v0.3.0...cors-v0.4.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-08 02:57:47 -10:00
Kai Ren
46cde4fb85
Fix parsing f64 from Scalar::Int ( #777 )
2020-10-07 14:40:36 -10:00
tyranron
f914322ef4
Mention #[graphql_interface] macro in CHANGELOG ( #682 )
2020-10-07 10:20:11 +02:00
tyranron
6d4a0a8709
Fill up missing docs for #[graphql_interface] macro ( #682 )
2020-10-07 10:09:01 +02:00
tyranron
b1a0366112
Fix interfaces description in Book ( #682 , #658 )
2020-10-06 11:58:30 +02: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
Camille TJHOA
1e733cc793
Fix context in quickstart ( #772 )
2020-10-01 07:14:01 -10:00
Kunjan Dalal
8b79f5b1f1
Update Actix to the latest version ( #761 )
...
* actix updated to latest version and actix rt removed
* actix rt added back as dev dep
2020-09-12 06:32:15 -10:00
Chris
ef82b5a9db
update ws keep-alive docs ( #762 )
2020-09-12 01:37:26 -04:00
Thomas Radloff
092a9851fb
Fix version. ( #755 )
...
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-09-10 22:20:27 -10:00
Jerel Unruh
0bf5e3cfa9
Reduce juniper_graphql_ws default KA to 15 seconds so that GQL clients don't disconnect ( #756 )
2020-09-10 12:02:18 -10:00
Kai Ren
dac4e648c1
Fix LookAheadMethods lifetimes ( #757 )
2020-09-10 12:00:58 -10:00
tyranron
a4f4d24677
Fix codegen failure tests on latest nightly Rust
2020-09-10 17:15:51 +03:00
tyranron
0f400c3799
Fmt juniper_actix
crate
2020-09-02 22:52:15 +03:00
Kai Ren
a684e1d91c
Re-enable marks-based static checks in code generated by macros ( #751 )
...
- add associated type to IntoResolvable and IntoFieldResult traits allowing to name the GraphQLType being resolved
- relax Sized requirement on some IsInputType and IsOutputType impls
2020-09-02 22:48:54 +03:00
Caio
2ab00f55d6
Remove unused dependencies ( #747 )
2020-08-28 20:34:11 -10:00
samuela
368ea6f96f
remove unnecessary moves ( #740 )
2020-08-19 19:09:43 -10:00
Mihai Dinculescu
45c16acc6e
Actix subscriptions tests ( #736 )
...
* Actix subscriptions tests
* Use LocalBoxFuture instead of async-trait
* expose-test-schema already includes serde_json
* Add anyhow to juniper dev-dependencies
* The HTTP test helpers are not needed for juniper tests
* juniper_actix does not need tokio in dev-dependencies
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-08-18 21:08:53 -10:00
Mihai Dinculescu
633602f000
juniper_rocket_async/ - Change Cookies to CookieJar ( #739 )
2020-08-17 14:32:49 -10:00
Arnaud
fdad97aa08
fix(juniper_graphql_ws): correct null deserialization issue ( #738 )
...
Closes #735
2020-08-14 13:46:23 -10:00
Mihai Dinculescu
8d7ba8295c
Impl subscriptions for juniper_actix ( #716 )
...
* Impl subscriptions for juniper_actix
* Add random_human example subscription
* Add actix_subscriptions example to CI
* fixup! Add random_human example subscription
* Migrate actix subscriptions to juniper_graphql_ws
* Simplify error handling
* Change unwrap to expect
* Close connection on server serialization error
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-08-09 12:19:34 -10:00
Dmitry Murzin
bdc8745a56
Fix compilation of juniper_rocket_async: add limit to Data::open() call ( #733 )
2020-08-09 10:46:52 -10:00
Christopher Brown
54e0e208fc
Small typo fix in juniper_warp comment
2020-08-03 16:05:50 -04:00
Chris
6788ef20c8
omit empty error vec in data message serialization ( #732 )
2020-08-01 21:43:10 -10:00
Weslen Nascimento
db209b38c4
Fix broken link in README.md ( #731 )
2020-08-01 13:54:35 -10:00
Chris
84c9720b53
GraphQL-WS crate and Warp subscriptions update ( #721 )
...
* update pre-existing juniper_warp::subscriptions
* initial draft
* finish up, update example
* polish + timing test
* fix pre-existing bug
* rebase updates
* address comments
* add release.toml
* makefile and initial changelog
* add new Cargo.toml to juniper/release.toml
2020-07-28 22:23:44 -10:00
Chris
dc309b83b7
Simplify SubscriptionConnection ( #719 )
...
* simplify SubscriptionConnection
* fmt
* update pre-existing juniper_warp::subscriptions
* use struct instead of tuple
* fmt
* update juniper_warp
2020-07-28 19:14:53 -10:00
Christian Legnitto
59419f1ec4
Remove boxed
in favor of pin
. ( #725 )
2020-07-28 19:10:15 -10:00
Christian Legnitto
c80cecf61e
Rocket can now compile on stable ( #723 )
2020-07-28 16:03:31 -10:00
Chris
7b9cf4cb18
fix for warp content type filter ( #724 )
2020-07-28 16:03:07 -10:00
Christian Legnitto
a5be3a878c
Unbreak integration with latest rocket master ( #722 )
...
This commit changed where `Outcome` is exported:
adc79016cd
2020-07-28 10:00:41 -10:00
Christian Legnitto
fe6d622008
Update percent_encoding ( #715 )
...
Replaces https://github.com/graphql-rust/juniper/pull/702
2020-07-24 17:27:38 -10:00