Samuel Hurel
89a5dc2fb9
Add note on complex fields impl block in doc ( #483 )
2019-12-14 00:29:19 -08:00
David Pedersen
3a6d5e6a46
Merge pull request #481 from cairomassimo/fix-unused-variable-error-message
...
Small fix/typo: unused variable error message
2019-12-11 18:00:38 +01:00
Massimo Cairo
8f1bf8c661
Fix unused variable error message
...
Was copied from undefined variable error message.
2019-12-11 17:27:06 +01:00
Jens Krause
93f3dc3d72
Use latest graphiql (v0.17.2) ( #477 )
...
incl. upgrade to latest React
2019-12-09 10:36:09 -08:00
Jens Krause
38ee6edb9e
Use latest graphql-playground
( #476 )
2019-12-09 10:34:31 -08:00
James Harton
5d56c9f221
Loosen constraints on uuid version.
...
The `uuid` maintainers have started releasing in the `0.8` version train. I've relaxed the version requirements on `juniper`'s dependencies to allow juniper users to specify a different version in their `Cargo.toml` and still have the integration work.
2019-12-01 14:27:41 +01:00
Klaus Purer
5be452075e
docs(quickstart): Fix juniper version so the examples work
2019-11-23 17:30:36 +00:00
Christoph Herzog
f0ba1c07da
ci: Fix used rust version
2019-11-16 03:39:36 +01:00
Christoph Herzog
ce3cf45ca9
Rename object
proc macro to graphql_object
2019-11-16 02:57:48 +01:00
Christoph Herzog
a31d3f3888
Remove old graphql_object! macro
2019-11-16 02:33:20 +01:00
Christoph Herzog
358071bfa4
Remove deprecated ScalarValue derive
...
This was renamed to GraphQLScalarValue and has been deprecated for a
while
2019-11-16 02:33:20 +01:00
Christoph Herzog
46590ae884
book: Fix union and scalar code examples
2019-11-16 02:33:20 +01:00
Christoph Herzog
9ce3d04007
Improve union
proc macro
...
* Rename to graphql_union
* Implement full-featured parsing and code generation
2019-11-16 02:33:18 +01:00
Christoph Herzog
6861951a1e
Disable async tests for juniper
2019-11-15 22:36:25 +01:00
Christoph Herzog
27e5e447c7
Fix pattern move error on stable
2019-11-15 22:34:08 +01:00
Christoph Herzog
641e87a0b6
Add back documentation for graphql_scalar! macro
2019-11-15 22:18:39 +01:00
Christoph Herzog
4f287806bd
Update CHANGELOG with master breaking changes
2019-11-15 22:18:39 +01:00
Christoph Herzog
5d270b7dea
Formatting
2019-11-15 22:18:38 +01:00
Christoph Herzog
50605ee73e
Duplicate juniper_rocket for async
...
This is required because rocket only supports futures on a git branch.
2019-11-15 21:52:22 +01:00
Christoph Herzog
38c3e28f22
Disable async tests on CI
2019-11-15 21:44:24 +01:00
Christoph Herzog
f6c0bc7b02
Fix tests.
2019-11-15 21:44:08 +01:00
Christoph Herzog
b634ad39eb
Various async feature fixes for the type system
2019-11-15 21:23:59 +01:00
Christoph Herzog
ad16093b88
Refactor GraphQLType::resolve to return Result<>
...
This unifies the output type of all resolvers.
Required for future step of making the output a associated type.
2019-11-14 09:51:32 +01:00
Christoph Herzog
6fcdd32c84
Remove GraphQLType ScalarValue default
...
This is more hinderance than useful.
2019-11-14 01:31:14 +01:00
Christoph Herzog
36c71d7162
chore: Remove ScalarRefValue trait
...
The trait was introduced while introducing generic scalars, but is not
actually required or useful. It's functionality is fully covered by
methods on the `ScalarValue` trait.
It also forced a lof of for<'a> ScalarRefValue bounds all over the code,
complicating signatures a lot.
It is completely removed now.
2019-11-14 01:21:41 +01:00
nWacky
eb85fefc36
Get back panic in macro [skip ci]
2019-11-13 14:26:25 +00:00
nWacky
2144ad0d7d
Remove async-trait
[skip ci]
2019-11-13 14:26:25 +00:00
nWacky
a5580a939d
Update most crates to futures 0.3, add todos on not updated crates
2019-11-12 12:04:09 +00:00
nWacky
cf99495368
Replace all futures::BoxFuture
with juniper::BoxFuture
2019-11-12 12:04:09 +00:00
nWacky
237e69c036
Rebase async_await
onto master ( #454 )
...
* feat: Raw identifier support in object macro
This commit implements raw identifier (`r#name`) support
for field names (methods) and arguments in the `object` proc macro.
Eg:
```rust
impl T {
fn r#type(r#trait: String) -> bool {}
}
```
* Rebase onto master
* Fix merge [skip ci]
2019-11-08 09:46:48 +00:00
Christian Legnitto
b133a0f3c2
Merge pull request #452 from instrumentisto/async-await-resolve-some-todos
...
Resolve some todos in async-await branch
2019-11-06 18:17:50 -08:00
David Pedersen
1148c75a1d
feat: Raw identifier support in object macro
...
This commit implements raw identifier (`r#name`) support
for field names (methods) and arguments in the `object` proc macro.
Eg:
```rust
impl T {
fn r#type(r#trait: String) -> bool {}
}
```
2019-11-06 23:08:25 +00:00
nWacky
778606c050
Fix bad merge [skip ci]
2019-11-06 12:01:50 +03:00
nWacky
e344f1c06f
Merge branch 'async-await-resolve-some-todos' of https://github.com/instrumentisto/juniper into async-await-resolve-some-todos
...
# Conflicts:
# juniper/src/macros/tests/args.rs
[skip ci]
2019-11-06 11:46:21 +03:00
nWacky
09d9513da9
Rebase onto master
2019-11-06 11:45:19 +03:00
nWacky
4834349310
Rebase onto async-await
2019-11-06 11:21:06 +03:00
nWacky
e151026cfa
Merge branch 'async-await-resolve-some-todos' of https://github.com/instrumentisto/juniper into async-await-resolve-some-todos
...
# Conflicts:
# examples/warp_async/Cargo.toml
# juniper/src/macros/tests/args.rs
# juniper_codegen/src/util.rs
[skip ci]
2019-11-05 12:10:04 +03:00
nWacky
99c0d26887
Comment out attr_arg_descr
and attr_arg_descr_collapse
tests
2019-11-05 12:06:08 +03:00
nWacky
ec76bf5ff2
Fix cargo.toml in warp_async
2019-11-05 11:20:08 +03:00
nWacky
7135c07ae5
Format
2019-11-05 11:20:08 +03:00
nWacky
9506272b82
Merge import in async_await
2019-11-05 11:20:07 +03:00
nWacky
554ba34df1
Format
2019-11-05 11:20:07 +03:00
nWacky
dbcaf30ec3
Rebase onto master
2019-11-05 11:20:06 +03:00
nWacky
e3c12e31fc
Format
2019-11-05 11:14:53 +03:00
nWacky
00dd1dc391
Resolve better error message with field/type name todo, update other panics with query name
2019-11-05 11:14:20 +03:00
nWacky
b1970aecd2
Remove useless todo
2019-11-05 11:14:20 +03:00
nWacky
52c3e281f3
Refactor GraphQLTypeAsync
to use async-trait
2019-11-05 11:14:20 +03:00
nWacky
820f472f2c
Add resolve_into_type_async
2019-11-05 11:14:19 +03:00
nWacky
e03e525645
Start adding async-trait
to GraphQLTypeAsync
2019-11-05 11:14:19 +03:00
nWacky
bfe6c7ae97
Remove __juniper_extract_generic macro
2019-11-05 11:14:18 +03:00