Commit graph

64 commits

Author SHA1 Message Date
Christoph Herzog
46590ae884 book: Fix union and scalar code examples 2019-11-16 02:33:20 +01:00
Christoph Herzog
97e1005178 Clean up ScalarValue transparent derive argument handling and documentation. 2019-06-25 18:55:45 +02:00
Christoph Herzog
3396074274 (codegen) Implement newtype derive for scalars.
This commit implements a newtype style custom derive
for scalars via `#[derive(GraphQLScalarValue)]`, which now
supports both deriving a base enum scalar type and newtypes.

For newtypes, the `#[graphql(transparent)]` attribute is
required.

This commit:
* implements the derive
* adds integration tests
* updates the book
2019-06-25 18:55:45 +02:00
Clayton Ray
c2f119690b fix(docs): correct warp example link in book (#367)
This fix adds the correct link for the Warp Server example.
2019-05-25 18:56:35 -07:00
Christoph Herzog
74522b015e (book) Update the graphql_scalar! example to be generic
This is now basically a requirement due to GraphQLObject derive
being generic.
2019-05-17 19:26:01 +02:00
Christoph Herzog
cff6036206 (book) Add ::object macro field and argument customization info 2019-05-16 14:08:19 +02:00
Christoph Herzog
29025e6cae
Rename impl_object to object. 2019-05-13 21:15:14 +02:00
Christoph Herzog
693405afa5
(book) impl_object refactor 2019-05-12 10:36:30 +02:00
Rogerio Moura
dbfcc762da Specify path to graphql_object module (#352) 2019-05-05 20:20:21 -07:00
Christoph Herzog
5a4230e0d0
Remove macro_use + extern crate statements (2018 edition) 2019-05-02 18:44:56 +02:00
Christoph Herzog
3165467665 (book) Remove inexistant tutorial link 2019-04-10 03:00:35 +02:00
Muriel Silveira
a75396846d Fix broken docs links
Many links on the documentation were broken because they
were not using the correct relative paths.
2019-04-10 02:19:26 +02:00
Christian Legnitto
ba8cfbd105 Add support for the canonical introspection query
Fixes https://github.com/graphql-rust/juniper/issues/307.
2019-04-04 09:11:20 +02:00
Christoph Herzog
9623e4d326 (book) Update and fix book compilation and tests
* Use mdbook for building the book
* Update book config
* Update book hierarchy to work properly with mdbook
    This necessitated adding place-holder index pages
    since mdbook does not suppoert stand-alon menu items
* Update tests to use 2018 edition
* Fix various compilation errors in the tests
2019-03-08 11:47:13 +01:00