Expose IntrospectionMode
This commit is contained in:
parent
d14ead03f9
commit
bf054b0872
|
@ -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;
|
||||||
|
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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::*;
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue
Block a user