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)] #[doc(no_inline)]
pub use resolver_utils::{ContainerType, EnumType, ScalarType}; pub use resolver_utils::{ContainerType, EnumType, ScalarType};
pub use response::{BatchResponse, Response}; pub use response::{BatchResponse, Response};
pub use schema::{Schema, SchemaBuilder, SchemaEnv}; pub use schema::{IntrospectionMode, Schema, SchemaBuilder, SchemaEnv};
#[doc(hidden)] #[doc(hidden)]
pub use static_assertions; pub use static_assertions;
pub use subscription::SubscriptionType; pub use subscription::SubscriptionType;

View File

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

View File

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