ilslv
265d4c5bb2
Fix list input coercion rules ( #1004 )
...
Additionally:
- fix WASM builds after 2.1 version of `bson`
2021-12-16 12:36:53 +02:00
Kai Ren
46be97ada4
Refactor FromInputValue
to return Result
instead of Option
( #987 )
...
- propagate `FromInputValue` conversion errors during validation
- replace panics with errors during resolving
Co-authored-by: ilslv <ilya.solovyiov@gmail.com>
2021-12-14 19:30:27 +02:00
ilslv
e264cf509d
Forbid __typename
on subscription root ( #1001 , #1000 )
2021-12-13 14:27:14 +02:00
ilslv
09da50b143
Upgrade actix-web
to latest beta versions
2021-12-13 12:22:07 +01:00
talhaguy
7bc8a2b79d
Fix links to latest stable Book ( #1002 )
2021-12-09 18:07:46 +02:00
dependabot[bot]
811c90486d
Upgrade graphql-parser
to 0.4 version ( #998 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Solovyiov <ilya.solovyiov@gmail.com>
2021-11-30 10:50:09 +02:00
Kai Ren
acde85a814
Implement graphql_input_value!
and graphql_vars!
macros ( #996 , #503 )
...
- add `From` impls to `InputValue` mirroring `Value` impls to provide better support for `Option` handling
- support expressions in `graphql_value!` macro
- use `null` in addition to `None` to create `Value::Null` in `graphql_value!` macro to mirror `serde_json::json!`
- use macros for `InputValue` and `Variables` construction in tests
Co-authored-by: Ilya Solovyiov <ilya.solovyiov@gmail.com>
2021-11-26 18:53:56 +02:00
ilslv
bc66a2d898
Upgrade actix-web
beta versions ( #995 )
2021-11-23 10:49:55 +02:00
Kai Ren
f66296d618
Replace ScalarValue::Visitor
with DeserializeOwned
requirement ( #985 )
...
- remove `Serialize` impl from `#[derive(GraphQLScalarValue)]` macro expansion
2021-10-11 21:53:04 +03:00
tyranron
168114fcf0
Use async Mutex
in juniper_actix
to fix latest nightly errors
2021-10-11 19:24:30 +03:00
dependabot[bot]
a8759b0a30
Update pretty_assertions requirement from 0.7.1 to 1.0.0
...
Updates the requirements on [pretty_assertions](https://github.com/colin-kiegel/rust-pretty-assertions ) to permit the latest version.
- [Release notes](https://github.com/colin-kiegel/rust-pretty-assertions/releases )
- [Changelog](https://github.com/colin-kiegel/rust-pretty-assertions/blob/main/CHANGELOG.md )
- [Commits](https://github.com/colin-kiegel/rust-pretty-assertions/compare/v0.7.1...v1.0.0 )
---
updated-dependencies:
- dependency-name: pretty_assertions
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 16:15:35 -10:00
jsus
7818173c86
Quickfix
2021-09-25 18:19:07 -10:00
jsus
13fc0dadeb
Using newtype for context
2021-09-25 18:19:07 -10:00
jsus
6ba8ead1fd
Using context for Database
...
For some this error is not uncovered during compile time
2021-09-25 18:19:07 -10:00
jsus
18c479e999
Fixes for async example
2021-09-25 18:19:07 -10:00
tyranron
dfda435bc7
Improve description and fix some test errors
2021-09-25 18:19:07 -10:00
jsus
9bd9727cb2
self.id fix in mutable context example
2021-09-25 18:19:07 -10:00
jsus
8d27055561
Added async mutable context example
2021-09-25 18:19:07 -10:00
dependabot[bot]
7ba7585d75
Update chrono-tz requirement from 0.5 to 0.6 ( #982 )
...
Updates the requirements on [chrono-tz](https://github.com/chronotope/chrono-tz ) to permit the latest version.
- [Release notes](https://github.com/chronotope/chrono-tz/releases )
- [Changelog](https://github.com/chronotope/chrono-tz/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono-tz/commits/v0.6.0 )
---
updated-dependencies:
- dependency-name: chrono-tz
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 16:55:20 -07:00
nickelc
b9257ef7d4
Fix Clippy warnings ( #980 )
2021-09-12 20:38:41 +03:00
dependabot[bot]
6bb34b9b64
Upgrade 'bson' crate to 2.0 version ( #932 , #979 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kai Ren <tyranron@gmail.com>
Co-authored-by: Grant Perry <grant42perry@gmail.com>
2021-09-08 19:42:07 +03:00
nitnelave
4c76e93cfb
Fix endpoint name typo in juniper_actix
example, vol.2 ( #977 , #976 )
2021-08-26 10:38:16 +03:00
nitnelave
717c202ba9
Fix endpoint name typo in juniper_actix
example ( #976 )
2021-08-26 10:15:35 +03:00
tyranron
74afe4c04a
Use graphql_value!() macro in tests asap
2021-08-13 02:12:01 +03: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
Kai Ren
39d1e43420
Allow using Rust arrays as GraphQL lists ( #918 ) ( #966 )
...
* Provide impls for arrays
* Remove redundant Default bound
* Recheck other places of mem::transmute usage
* Fix missing marker impls
* Extend GraphQL list validation with optional expected size
* Improve input object codegen
* Cover arrays with tests
* Add CHANGELOG entry
* Consider panic safety in FromInputValue implementation for array
* Tune up codegen failure tests
2021-07-23 14:51:47 -10:00
tyranron
8a90f867d4
Expose GraphQLRequest fields ( #750 )
2021-07-21 20:45:01 +03:00
tyranron
d211f4a8ef
Ensure operation roots resolve their __typename ( #372 )
2021-07-21 19:14:13 +03:00
tyranron
ad64025572
Strip redundant fields in codegen producing warnings
2021-07-21 18:16:29 +03:00
Kai Ren
64fb83f5aa
Provide access to juniper::GraphQLBatchRequest from juniper_rocket::GraphQLRequest via AsRef/AsMut ( #968 , #930 )
2021-07-21 17:33:11 +03:00
tyranron
5fbd751de2
Fix spelling in documentation for juniper::Object ( #960 )
2021-07-19 14:07:58 +03:00
Kai Ren
7597523720
Allow spreading interface fragments on unions and other interfaces ( #965 , #798 )
2021-07-19 14:06:47 +03:00
dependabot[bot]
88a7571b30
Update env_logger requirement from 0.8.1 to 0.9.0 ( #964 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tyranron <tyranron@gmail.com>
2021-07-16 12:01:18 +03:00
Christian Legnitto
547e65e124
Update README.md
2021-07-08 00:25:31 -07:00
Christian Legnitto
439829b1f5
Release juniper_actix 0.4.0
2021-07-08 00:16:47 -07:00
Christian Legnitto
fd8c414f18
Release juniper_warp 0.7.0
2021-07-08 00:12:02 -07:00
Christian Legnitto
d4a5ed4b0e
Release juniper_graphql_ws 0.3.0
2021-07-08 00:10:57 -07:00
Christian Legnitto
ac2c2e19a1
Release juniper_subscriptions 0.16.0
2021-07-08 00:09:19 -07:00
Christian Legnitto
06bdf0bfad
Release juniper_hyper 0.8.0
2021-07-08 00:07:53 -07:00
Christian Legnitto
fe9c89c73c
Release juniper_rocket 0.8.0
2021-07-08 00:04:03 -07:00
Christian Legnitto
88b10fe009
Release juniper 0.15.7
2021-07-08 00:01:56 -07:00
Christian Legnitto
f50ef5dfaa
Release juniper_codegen 0.15.7
2021-07-08 00:00:55 -07:00
Christian Legnitto
28c116411d
Switch releasing commands from a blocklist to an allowlist ( #956 )
...
* Switch releasing commands from a blocklist to an allowlist
This is much better as we can hardocde the crates to filter out in
one place, can selectively release certain crates easily,
and only have one command instead of the "-some" hack
* get rid of workaround no longer needed
* More makefiles
2021-07-07 23:47:16 -07:00
Christian Legnitto
93deb2862a
Make juniper_rocket_async replace juniper_rocket ( #955 )
...
* Make juniper_rocket_async replace juniper_rocket
Now that rocket v0.5 is async and in rc, merge the two juniper projects.
Fixes https://github.com/graphql-rust/juniper/issues/947 .
* Remove println
2021-07-07 09:26:22 -07:00
Christian Legnitto
bb55ad11cc
Update book.yml
2021-07-06 17:05:03 -07:00
Christian Legnitto
d8fb1da0a2
Update README.md
2021-07-06 16:33:30 -07:00
Christian Legnitto
1aa68ee440
Update CHANGELOG.md
2021-07-06 16:25:39 -07: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
6ada6b09a9
Actix v4.0.0-beta.8 support ( #952 )
2021-07-06 15:41:42 -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