Merge pull request #931 from DoumanAsh/introspection_mode

Expose IntrospectionMode
This commit is contained in:
Sunli 2022-06-06 09:48:05 +08:00 committed by GitHub
commit dd45449de3
3 changed files with 6 additions and 3 deletions

View File

@ -234,12 +234,12 @@ pub use indexmap;
pub use look_ahead::Lookahead;
#[doc(no_inline)]
pub use parser::{Pos, Positioned};
pub use registry::CacheControl;
pub use registry::{CacheControl, SDLExportOptions};
pub use request::{BatchRequest, Request};
#[doc(no_inline)]
pub use resolver_utils::{ContainerType, EnumType, ScalarType};
pub use response::{BatchResponse, Response};
pub use schema::{Schema, SchemaBuilder, SchemaEnv};
pub use schema::{IntrospectionMode, Schema, SchemaBuilder, SchemaEnv};
#[doc(hidden)]
pub use static_assertions;
pub use subscription::SubscriptionType;

View File

@ -31,8 +31,11 @@ use crate::{
/// Introspection mode
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum IntrospectionMode {
/// Introspection only
IntrospectionOnly,
/// Enables introspection
Enabled,
/// Disables introspection
Disabled,
}

View File

@ -222,7 +222,7 @@ where
/// # Examples
///
/// ```rust
///
///
/// use async_graphql::*;
/// use async_graphql::types::connection::*;
///