diff --git a/orientdb-macro/src/result.rs b/orientdb-macro/src/result.rs index 2ed3ac9..b588f90 100644 --- a/orientdb-macro/src/result.rs +++ b/orientdb-macro/src/result.rs @@ -15,7 +15,7 @@ pub fn derive(input: &DeriveInput) -> syn::Result { let ty = &field.ty; Some(parse_quote!( - let #id: #ty = result.get_checked(#id_s)?; + let #id: #ty = result.get_or_null(#id_s)?; )) });