fe99e1cc70
* Updated implementation of derive enum - allows context specification - allows scalar specification - shares code with derive object * Added this feature to CHANGELOG * Added matrix with supported macro attributes for enums * Added case which checks for custom context * GraphQLUnion now can use a different context per variant * Moved context switch test for union into right folder * Sync resolve expression has the same form as the other impls * Disabled custom scalar on GraphQLEnum * Fixed CHANGELOG * Fixed support matrix of GraphQLEnum in the book - scalar not supported! - skip not supported! * Added test case for "noasync" derive attribute * Disallowed generics and lifetimes on GraphQLEnum * Added error message for duplicate naming * Added error message for empty variant |
||
---|---|---|
.. | ||
content | ||
tests | ||
.gitignore | ||
book.toml | ||
ci-build.sh | ||
README.md |
Juniper Book
Book containing the Juniper documentation.
Contributing
Requirements
The book is built with mdBook.
You can install it with:
cargo install mdbook
Starting a local test server
To launch a local test server that continually re-builds the book and autoreloads the page, run:
mdbook serve
Building the book
You can build the book to rendered HTML with this command:
mdbook build
The output will be in the ./_rendered
directory.
Running the tests
To run the tests validating all code examples in the book, run:
cd ./tests
cargo test
Test setup
All Rust code examples in the book are compiled on the CI.
This is done using the skeptic library.