EdorianDark
250e261204
Make the actix example self contained ( #839 )
...
A smaller example is esier to understand.
Fixes #804
Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2021-01-15 19:26:55 -10:00
Kai Ren
4682fe2f4e
Add missing marker trait impls for container types ( #847 )
2021-01-15 07:31:50 -10:00
Filip Gospodinov
516c720962
juniper_rocket_async: fix tokio dependency ( #848 )
2021-01-15 12:31:25 +02:00
dependabot-preview[bot]
4f3939075a
Update reqwest requirement from 0.10 to 0.11 ( #842 )
...
Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest ) to permit the latest version.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.10.0...v0.11.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-05 22:44:11 -10:00
Nicolas Bonnet
4467b29153
Add missing use declaration in Quickstart ( #838 )
...
Seems like the example code in the quickstart guide is missing an use declaration.
The code fails to compile: `error: cannot find macro `graphql_value` in this scope` with `rustc 1.48.0 (7eac88abb 2020-11-16)`
2020-12-28 07:45:40 -10:00
Christian Legnitto
509438a5be
Release juniper_actix 0.2.1
2020-12-12 09:53:43 -10:00
Christian Legnitto
7da9f6fcd6
Release juniper_graphql_ws 0.2.1
2020-12-12 09:52:41 -10:00
Christian Legnitto
bd6c5c7525
Release juniper_subscriptions 0.15.1
2020-12-12 09:51:38 -10:00
Christian Legnitto
8ff0c325a5
Release juniper_hyper 0.6.1
2020-12-12 09:49:34 -10:00
Christian Legnitto
b2a3b097bd
Release juniper 0.15.1
2020-12-12 09:48:31 -10:00
Christian Legnitto
f1f64446b5
Release juniper_codegen 0.15.1
2020-12-12 09:47:47 -10:00
Christian Legnitto
fcfb530a91
Remove space so replacements work in CI for
...
release tests
2020-12-12 09:47:12 -10:00
Christian Legnitto
7332065e60
Update CHANGELOG.md
2020-12-12 09:46:36 -10:00
Christian Legnitto
851918ec77
Update CHANGELOG.md
2020-12-12 09:44:00 -10:00
Christian Legnitto
0c83ffde2a
Fix release replacements. ( #825 )
...
Some crates need to rewrite values when they are released in other crates. It turns out, by default we use a general config _build/release.toml. So it turns out these local-to-the-crate release.tomls were not being used unless explicitly chosen in the local-to-the-crate Makefile.toml. This removes the dead release.tomls and overrides the ones that need to edit other crates on release.
2020-12-11 19:20:05 -10:00
Graeme Coupar
fe86dbb782
Mark Arc
with IsInputType
& IsOutputType
. ( #822 )
...
* Mark `Arc` with `IsInputType` & `IsOutputType`.
We've just updated a service we work with to the latest release of
juniper (it's been on a fairly old master commit for some time). In
this service we have some fields that are contained within `Arc`s, which
I added support for in #479 .
Since then it seems the new marker traits of `IsInputType` &
`IsOutputType` have been added, but they do not support `Arc`, leading
to:
```
error[E0277]: the trait bound `Arc<menu::Menu>: IsOutputType<__S>` is not satisfied
--> src/graphql.rs:36:1
|
36 | #[juniper::graphql_object(Context=Context)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IsOutputType<__S>` is not implemented for `Arc<menu::Menu>`
|
= note: required by `juniper::marker::IsOutputType::mark`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
```
This commit adds support for those, mirroring the support for `Box`.
I'm not sure if there's a good place to add a test for this
functionality so that regressions can be avoided in the future?
* Add Arc tests & FromInputValue for Arc<T>
2020-12-11 16:30:41 -10:00
Christian Legnitto
6326acde33
Fix some clippy lints ( #809 )
2020-12-10 21:41:23 -10:00
Kunjan Dalal
b418869f95
Update actix and juniper_actix ( #823 )
2020-12-10 21:40:49 -10:00
Christian Legnitto
1c4497b66c
Release juniper_actix 0.2.0
2020-12-09 20:11:02 -10:00
Christian Legnitto
0b6a8895e4
Fix juniper_actix releases
2020-12-09 20:09:35 -10:00
Christian Legnitto
9a8d98a0b1
Release juniper_warp 0.6.0
2020-12-09 20:06:03 -10:00
Christian Legnitto
270deb24dc
Fix warp releases
2020-12-09 20:05:14 -10:00
Christian Legnitto
fe1bcfcb7a
Release juniper_graphql_ws 0.2.0
2020-12-09 20:00:07 -10:00
Christian Legnitto
58dcba1c81
Fix version bumps and releases for juniper_graphql_ws
2020-12-09 19:59:12 -10:00
Christian Legnitto
b190a7fade
Release juniper_subscriptions 0.15.0
2020-12-09 19:50:48 -10:00
Christian Legnitto
2578cbb3dd
Don't override ignore list when really releasing some
...
packages
2020-12-09 19:49:43 -10:00
Christian Legnitto
ec18b6db51
Make non-test partial releases work
2020-12-09 19:45:56 -10:00
Christian Legnitto
53a2e85eec
Make partial releases actually work.
...
This was referencing a target that does not exist.
The `-some` targets are there to merely look the the
env variable for overrides
2020-12-09 19:42:33 -10:00
Christian Legnitto
e7555078e1
Skip publishing juniper_rocket_async
...
This currently requires a git commit of
Rocket and thus cannot be published to crates.io
2020-12-09 19:31:01 -10:00
Christian Legnitto
5436288dae
Release juniper_rocket 0.6.0
2020-12-09 19:23:01 -10:00
Christian Legnitto
d04690538e
Release juniper_iron 0.7.0
2020-12-09 19:21:53 -10:00
Christian Legnitto
17523aebd4
Release juniper_hyper 0.6.0
2020-12-09 19:20:43 -10:00
Christian Legnitto
bfe627e573
Release juniper 0.15.0
2020-12-09 19:19:43 -10:00
Christian Legnitto
d63fdef321
Release juniper_codegen 0.15.0
2020-12-09 19:19:00 -10:00
Lukas Kalbertodt
2c15ea798c
Check type before resolving in inline fragments to fix panic when using inline fragments with interfaces ( #816 , #815 )
2020-12-09 20:26:59 +02:00
Zak
4ffd276a5b
Allow raw identifier for field arguments in #[graphql_object] macro ( #812 , #786 )
2020-11-26 12:46:06 +02:00
Christian Legnitto
f3170c7adf
Examples and benchmarks are not released to crates.io ( #808 )
2020-11-16 07:24:08 -10:00
Jonas Meurer
cb6d89f4c7
Allow different Scalar for GraphQLScalarValue ( #807 )
...
* allow setting scalar in macro
* rustfmt
* added changes to changelog
* added test cases
2020-11-15 17:15:55 -10:00
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