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