ddc1488195
- reimplement #[derive(GraphQLUnion)] macro to support: - both structs and enums - generics in type definition - multiple #[graphql] attributes - external resolver functions - remove From trait impls generation for enum variants - reimplement #[graphql_union] macro to support: - traits - generics in trait definition - multiple attributes - external resolver functions - GraphQLType implemetation for a raw trait object - GraphQLTypeAsync implemetation (#549) - add marker::GraphQLUnion trait - rewrite "2.5 Unions" section in Book (Juniper user documentation) - rewrite `codegen` and `codegen_fail` integration tests for GraphQL unions Additionally: - re-export `futures` crate in `juniper` for convenient reuse in the generated code without requiring library user to provide `futures` crate by himself (#663) - use unit type () as default context for EmptyMutation and EmptySubscriptions - relax Sized trait bound on some GraphQLType and GraphQLTypeAsync definitions, implementations and usages |
||
---|---|---|
.. | ||
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.