Remove InputObjectType and add InputValueType/OutputValueType to docs
This commit is contained in:
parent
c2f34b90e5
commit
1e430b9c11
|
@ -166,8 +166,6 @@ pub fn generate(object_args: &args::InputObject, input: &DeriveInput) -> Result<
|
|||
#crate_name::Value::Object(map)
|
||||
}
|
||||
}
|
||||
|
||||
impl #crate_name::InputObjectType for #ident {}
|
||||
};
|
||||
Ok(expanded.into())
|
||||
}
|
||||
|
|
|
@ -49,9 +49,6 @@ pub trait OutputValueType: Type {
|
|||
) -> Result<serde_json::Value>;
|
||||
}
|
||||
|
||||
/// Represents a GraphQL input object
|
||||
pub trait InputObjectType: InputValueType {}
|
||||
|
||||
/// Represents a GraphQL scalar
|
||||
///
|
||||
/// You can implement the trait to create a custom scalar.
|
||||
|
|
|
@ -133,7 +133,7 @@ pub use serde_json;
|
|||
|
||||
pub mod http;
|
||||
|
||||
pub use base::{ScalarType, Type};
|
||||
pub use base::{InputValueType, OutputValueType, ScalarType, Type};
|
||||
pub use context::{
|
||||
Context, ContextBase, Data, QueryEnv, QueryPathNode, QueryPathSegment, Variables,
|
||||
};
|
||||
|
@ -161,8 +161,6 @@ pub use context::ContextSelectionSet;
|
|||
#[doc(hidden)]
|
||||
pub mod registry;
|
||||
#[doc(hidden)]
|
||||
pub use base::{InputObjectType, InputValueType, OutputValueType};
|
||||
#[doc(hidden)]
|
||||
pub use subscription::SubscriptionType;
|
||||
|
||||
/// Define a GraphQL object with methods
|
||||
|
|
Loading…
Reference in New Issue
Block a user