Remove InputObjectType and add InputValueType/OutputValueType to docs

This commit is contained in:
Sunli 2020-09-15 09:31:55 +08:00
parent c2f34b90e5
commit 1e430b9c11
3 changed files with 1 additions and 8 deletions

View File

@ -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())
}

View File

@ -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.

View File

@ -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