Expose IntrospectionMode

This commit is contained in:
Douman 2022-05-27 12:31:10 +09:00
parent d14ead03f9
commit bf054b0872
3 changed files with 5 additions and 2 deletions

View File

@ -238,7 +238,7 @@ 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::*;
///