do resolve for null

This commit is contained in:
thomas-jeepe 2017-11-17 18:26:53 -05:00 committed by GitHub
parent a9f462a9f0
commit 80f6224f65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,6 +138,10 @@ impl GraphQLType for () {
fn meta<'r>(_: &(), registry: &mut Registry<'r>) -> MetaType<'r> {
registry.build_scalar_type::<Self>(&()).into_meta()
}
fn resolve(&self, _: &(), _: Option<&[Selection]>, _: &Executor<Self::Context>) -> Value {
Value::null()
}
}
impl FromInputValue for () {