Sunli
10a645c8de
Update book
2021-05-16 13:50:47 +08:00
Bram
d5730f1db1
Improve documentation of ComplexObject
2021-05-04 20:12:34 +02:00
Sunli
adbf8de8eb
Update cursor_connections.md
2021-04-05 12:27:47 +08:00
Daniel Sonck
68d1fe76c3
Update cursor_connections.md
...
Add the necessary `async move` to the block.
2021-04-05 12:25:54 +08:00
tobi
008a1a188a
Document SDL schema export in the book
2021-04-03 11:41:37 +02:00
Sunli
bec0fc18a9
Add ComplexObject macro. #355
2021-03-18 10:13:46 +08:00
Taiki Endo
4a78b0460d
Update subscription.md
2021-03-09 22:34:29 +09:00
Taiki Endo
f1b82a7b56
Update apollo_tracing.md
2021-03-06 22:22:28 +09:00
Sunli
23e736422f
Update books.
2021-03-04 12:13:08 +08:00
Sunli
cf7c4b1ac2
Update book.
2021-02-22 09:52:41 +08:00
Sunli
2a245cce26
Update book.
2021-02-06 16:38:45 +08:00
Lee Benson
2d59fbed4a
Fix for default_with
...
Signed-off-by: Lee Benson <lee@leebenson.com>
2021-01-19 09:53:29 +00:00
Sunli
58b5c78a89
Update book.
2021-01-16 08:08:36 +08:00
Lee Benson
c9c62c7cad
generic objects ( #390 )
2021-01-15 22:07:29 +08:00
Ejez
56b166470a
Fix some book typos ( #378 )
2021-01-06 22:04:37 +08:00
weihuliu
e13d1a3f03
add zh-CN/integrations_to_tide.md ( #363 )
...
* add zh-CN/integrations_to_tide.md
2020-12-31 08:05:24 +08:00
Sunli
987b30601f
Update integrations_to_tide.md
2020-12-29 19:54:49 +08:00
krevativ
18d265b1ae
Add tide integration book section
2020-12-28 21:19:55 +01:00
Sunli
0e5c63413f
Improve dataloader
2020-12-22 10:04:21 +08:00
Sunli
f988a4050f
Update docs.
2020-12-21 19:23:51 +08:00
Sunli
c4073759c7
Update docs.
2020-12-18 23:10:57 +08:00
Sunli
ec82e64a39
Improve depth and complex.
2020-12-18 18:56:28 +08:00
Sunli
0747cba7d2
Update docs
2020-12-15 10:05:44 +08:00
Daniel Wiesenberg
2f559e8dde
Add Rocket integration to README and book
2020-10-26 08:35:31 +01:00
Sunli
5ef0f7f928
Update book
2020-10-16 11:12:17 +08:00
Sunli
b054f1bf9f
Fix can no longer derive Union for union types with lifetimes. #311
2020-10-15 08:53:17 +08:00
Sunli
d7d26744ef
Update book
2020-10-14 09:17:00 +08:00
Sunli
a56f20827e
Update book
2020-10-14 09:10:06 +08:00
Sunli
45ad7dc196
Update book
2020-10-14 08:03:51 +08:00
Sunli
c1491563c0
Update introduction.md
2020-10-14 07:36:54 +08:00
Sunli
683f2483bb
Update book ( #310 )
...
Update book
2020-10-13 23:13:36 +08:00
Sunli
256ba11e58
Update define_simple_object.md
2020-10-13 10:52:04 +08:00
Sunli
13e51531d5
Update book
2020-10-13 10:36:57 +08:00
Sunli
9f1de91b8a
Update book.
2020-10-13 07:35:30 +08:00
Sunli
10cd868f4c
Some improvements.
2020-10-10 16:28:07 +08:00
Sunli
299a40bc4e
Update docs.
2020-10-07 13:40:03 +08:00
AurelienFT
e7b4ad8f2f
Rework guard ( #296 )
...
Rework guard #293
2020-10-06 17:16:51 +08:00
Roman Kudryashov
a02050b7e2
Fix custom scalars doc
2020-10-04 12:21:53 +03:00
Sunli
6ed1cd1b47
Update docs
2020-10-02 15:34:20 +08:00
Sunli
fd6a4a1946
Update docs
2020-10-01 11:24:30 +08:00
Sunli
33c2dcd4cf
Merge branch 'master' of https://github.com/async-graphql/async-graphql
2020-10-01 11:23:33 +08:00
Sunli
3d7512ec58
Update docs.
2020-10-01 11:23:24 +08:00
Sunli
80d47a9fc7
Merge pull request #291 from async-graphql/rework-errors
...
Rework errors
2020-10-01 11:18:23 +08:00
Chip Senkbeil
2556c2fd7a
Add flatten union documentation
2020-09-30 21:44:47 -05:00
Koxiaet
ab82460b81
Merge master
2020-09-30 18:24:24 +01:00
Koxiaet
2ddaaaa07f
Rework errors
...
This completely overhauls the error system used in async-graphql.
- `Error` has been renamed to `ServerError` and `FieldError` has been
renamed to just `Error`. This is because `FieldError` is by far the most
common error that users will have to use so it makes sense to use the
most obvious error name. Also, the current name didn't make sense as it
was used for things other than field errors, such as the data callback
for websockets.
- `ServerError` has been made completely opaque. Before it was an enum
of all the possible errors, but now it just contains an error message,
the locations, the path and extensions. It is a shame that we lose
information, it makes more sense as _conceptually_ GraphQL does not
provide that information. It also frees us to change the internals of
async-graphql a lot more.
- The path of errors is no longer an opaque JSON value but a regular
type, `Vec<PathSegment>`. The type duplication of `PathSegment` and
`QueryPathSegment` is unfortunate, I plan to work on this in the future.
- Now that `ServerError` is opaque, `RuleError` has been removed from
the public API, making it simpler.
- Additionally `QueryError` has been completely removed. Instead the
error messages are constructed ad-hoc; I took care to never repeat an
error message.
- Instead of constructing field-not-found errors inside the
implementations of field resolvers they now return `Option`s, where a
`None` value is representative of the field not being found.
- As an unfortunate consequence of the last change, self-referential
types based on the output of a subscription resolver can no longer be
created. This does not mean anything for users, but causes lifetime
issues in the implementation of merged objects. I fixed it with a bit of
a hack, but this'll have to be looked into further.
- `InputValueError` now has a generic parameter - it's kind of weird but
it's necessary for ergonomics. It also improves error messages.
- The `ErrorExtensions` trait has been removed. I didn't think the
`extend` method was necessary since `From` impls exist. But the
ergonomics are still there with a new trait `ExtendError`, which
is implemented for both errors and results.
- `Response` now supports serializing multiple errors. This allows for
nice things like having multiple validation errors not be awkwardly
shoved into a single error.
- When an error occurs in execution, data is sent as `null`. This is
slightly more compliant with the spec but the algorithm described in
<https://spec.graphql.org/June2018/#sec-Errors-and-Non-Nullability > has
yet to be implemented.
2020-09-29 20:06:44 +01:00
Sunli
8c5d8f0324
Rework async-graphql-derive. #288
2020-09-29 16:06:10 +08:00
Sunli
e42f5a4477
Update book.
2020-09-28 14:43:12 +08:00
Sunli
a0905de86f
Update docs
2020-09-28 09:31:19 +08:00
Chip Senkbeil
b9359df3f6
Add remote enum documentation
...
Add book documentation about remote option for enums (#276 )
2020-09-27 14:02:10 -05:00
Sunli
ebb7c90461
Remove all GQL prefix. #208
2020-09-20 13:44:20 +08:00
Sunli
322e296a24
Remove the GQL prefix of all macros. #208
2020-09-18 09:10:24 +08:00
Sunli
fab82f15f3
Update book
2020-09-17 08:14:07 +08:00
Sunli
646c6155cd
Update book
2020-09-15 11:56:05 +08:00
Sunli
7aa9cb2ed7
Update Book
2020-09-13 12:12:32 +08:00
Sunli
13f7126a13
Udate docs
2020-09-13 11:51:10 +08:00
Sunli
8d3ae2d465
Update book.
2020-09-11 23:38:18 +08:00
Sunli
035e7c27c9
Release 1.18.0
2020-09-09 15:27:45 +08:00
Koxiaet
ba5e80f35e
Improve book and fix serde dependency
2020-09-01 06:47:22 +01:00
Sunli
3a0ccd43a0
Update docs
2020-08-28 14:04:59 +08:00
Lee Benson
449e6fc4e8
Merge pull request #1 from leebenson/patch-2
...
Update SUMMARY.md
2020-08-27 11:04:11 +01:00
Lee Benson
3ab7ddb145
Update SUMMARY.md
2020-08-27 11:02:28 +01:00
Lee Benson
876e221cb7
Update merging_objects.md
...
Add subscription merging
2020-08-27 11:01:39 +01:00
Sunli
702869a1f2
Add GQLMergedObject to docs/zh_CN
2020-08-11 11:42:19 +08:00
D1plo1d
cb18c60989
Add GQLMergedObject to docs
2020-08-10 23:21:15 -04:00
Sunli
b0bce9ec32
Update book
2020-08-10 13:01:49 +08:00
Alaa Zorkane
3d179038f3
fix(docs): missing comment hashtag
2020-08-10 03:54:22 +01:00
Quentin Perez
5863ad2877
InputValueValidator: impl for MustBeZero
2020-08-03 14:43:15 +02:00
Sunli
c22ff21b96
InputValueValidator::is_valid function now returns the Result type. #221
2020-07-30 09:43:51 +08:00
Sunli
993b2499d7
Update input_value_validators.md
2020-07-30 09:29:07 +08:00
Sunli
3395c00603
Replace Value::Int and Value::Float with Value::Number.
2020-07-29 09:42:52 +08:00
Sunli
3eb3e1441f
Fix typo
2020-07-15 15:08:58 +08:00
Sunli
741ec4d90a
Update docs #205
2020-07-08 15:05:38 +08:00
Blaine Bublitz
6ed3909a9a
Use FieldResult for data(), add data_unchecked() for panic
2020-07-06 17:39:53 -07:00
Sunli
c6803c4b35
Update docs for federation #180
2020-06-19 13:03:17 +08:00
Atsuhiro Takahashi
9f8197e317
Fix sample code in the book.
2020-06-18 21:59:45 +09:00
Atsuhiro Takahashi
3fd22ae3a2
Fix sample code on Quickstart ( #177 )
...
Fix sample code on Quickstart #177
2020-06-15 21:07:38 +08:00
Sunli
cda4498979
Remove all datasource-related code and update the documentation.
2020-06-15 14:17:19 +08:00
Sunli
27b622e8bc
Add connection::query function
2020-06-02 17:43:13 +08:00
Sunli
7a3c4792f5
Update docs
2020-06-02 08:57:45 +08:00
Sunli
27587dda8f
Merge pull request #134 from nm-infy/nm-infy-patch-2
...
Correct spelling in context.md
2020-06-01 19:16:26 +08:00
Nilesh Mali
910ffc2726
correct spelling
2020-06-01 16:40:01 +05:30
Nilesh Mali
e2f26f8996
correct statement grammar and spelling
2020-06-01 16:39:06 +05:30
Nilesh Mali
272ba99bb4
correct spelling in context.md
2020-06-01 16:31:04 +05:30
Nilesh Mali
8b591952eb
correct spelling in apollo_federation.md
2020-06-01 15:55:19 +05:30
Sunli
928ecba19c
Update introduction.md
2020-06-01 10:49:43 +08:00
Sunli
cf537ad9a1
Merge pull request #128 from phated/notes-from-120
...
Improve stability message based on #120 feedback
2020-06-01 09:39:20 +08:00
Blaine Bublitz
89c3bdf3c2
Improve stability message based on #120 feedback
2020-05-31 12:00:19 -07:00
sunli
3c97c76c60
update some docs
2020-05-29 00:01:04 +08:00
Иван Плесских
6d56c0157e
Added docs for Interface
field method
argument ( #124 )
...
* Added docs for `Interface` field `method` argument
2020-05-28 23:50:01 +08:00
sunli
1a7ae5a26d
Update introduction.md
2020-05-28 08:15:04 +08:00
Sunli
bdfaaf46ef
Merge pull request #120 from phated/stability-warning
...
Add stability warning to README & book (ref #117 )
2020-05-28 08:02:59 +08:00
Sunli
ada2597130
New data source ( #105 )
...
* New data source
2020-05-28 08:02:00 +08:00
Blaine Bublitz
5fb79d6b15
Add stability warning to README & book (ref #117 )
2020-05-27 15:40:51 -07:00
sunli
c79e9f1b58
Update docs
2020-05-26 23:27:50 +08:00
nicolaiunrein
24de8639b6
Fix typo in book
2020-05-21 18:45:24 +02:00
Samuel Hurel
36c05dc5a7
Fix tests & impl From<Stream> for StreamDataSource
2020-05-21 10:22:36 +02:00
Nicolai Unrein
1fd20d921e
add examples and benchmarks to introduction of book
2020-05-20 13:29:07 +02:00
Sunli
89bfaac0eb
The scalar name and description attributes are placed on the process macro attributes. #97
2020-05-19 13:27:01 +08:00
sunli
0717d6685b
Update error_extensions.md
2020-05-13 12:51:44 +08:00