Struct async_graphql::dynamic::InputValue
source · pub struct InputValue { /* private fields */ }
Available on crate feature
dynamic-schema
only.Expand description
A GraphQL input value type
Implementations§
source§impl InputValue
impl InputValue
sourcepub fn new(name: impl Into<String>, ty: impl Into<TypeRef>) -> Self
pub fn new(name: impl Into<String>, ty: impl Into<TypeRef>) -> Self
Create a GraphQL input value type
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description
sourcepub fn inaccessible(self) -> Self
pub fn inaccessible(self) -> Self
Indicate that an enum is not accessible from a supergraph when using Apollo Federation
Reference: https://www.apollographql.com/docs/federation/federated-types/federated-directives/#inaccessible
Arbitrary string metadata that will be propagated to the supergraph when using Apollo Federation. This attribute is repeatable
sourcepub fn default_value(self, value: impl Into<Value>) -> Self
pub fn default_value(self, value: impl Into<Value>) -> Self
Set the default value