Updated book for master ***NO_CI***

This commit is contained in:
Juniper Bot 2019-05-02 17:22:08 +00:00
parent fd1ee76fd7
commit 31e380fd68
5 changed files with 6 additions and 8 deletions

View file

@ -292,8 +292,7 @@ type Schema = juniper::RootNode<'static, Query, Mutation>;
<a class="header" href="#executor" id="executor"><h2>Executor</h2></a>
<p>You can invoke <code>juniper::execute</code> directly to run a GraphQL query:</p>
<pre><pre class="playpen"><code class="language-rust"># // Only needed due to 2018 edition because the macro is not accessible.
# #[macro_use]
# extern crate juniper;
# #[macro_use] extern crate juniper;
use juniper::{FieldResult, Variables, EmptyMutation};
#[derive(juniper::GraphQLEnum, Clone, Copy)]
@ -768,7 +767,7 @@ impl juniper::IntoFieldError for CustomError {
match self {
CustomError::WhateverNotSet =&gt; juniper::FieldError::new(
&quot;Whatever does not exist&quot;,
juniper::graphql_value!({
graphql_value!({
&quot;type&quot;: &quot;NO_WHATEVER&quot;
}),
),

View file

@ -248,8 +248,7 @@ type Schema = juniper::RootNode&lt;'static, Query, Mutation&gt;;
<a class="header" href="#executor" id="executor"><h2>Executor</h2></a>
<p>You can invoke <code>juniper::execute</code> directly to run a GraphQL query:</p>
<pre><pre class="playpen"><code class="language-rust"># // Only needed due to 2018 edition because the macro is not accessible.
# #[macro_use]
# extern crate juniper;
# #[macro_use] extern crate juniper;
use juniper::{FieldResult, Variables, EmptyMutation};
#[derive(juniper::GraphQLEnum, Clone, Copy)]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -243,7 +243,7 @@ impl juniper::IntoFieldError for CustomError {
match self {
CustomError::WhateverNotSet =&gt; juniper::FieldError::new(
&quot;Whatever does not exist&quot;,
juniper::graphql_value!({
graphql_value!({
&quot;type&quot;: &quot;NO_WHATEVER&quot;
}),
),