From eb22edfd35478fa31c25be84cc3b22d347ac534d Mon Sep 17 00:00:00 2001 From: Josipmrden Date: Tue, 20 Jun 2023 09:33:14 +0200 Subject: [PATCH] Add any type to C++ mgp wrapper --- include/mgp.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/mgp.hpp b/include/mgp.hpp index a40d76fd3..f40a83a3f 100644 --- a/include/mgp.hpp +++ b/include/mgp.hpp @@ -946,6 +946,7 @@ class Duration { /* #region Value */ enum class Type : uint8_t { Null, + Any, Bool, Int, Double, @@ -1491,6 +1492,8 @@ inline bool ValuesEqual(mgp_value *value1, mgp_value *value2) { /// @brief Converts C++ API types to their MGP API equivalents. inline mgp_type *ToMGPType(Type type) { switch (type) { + case Type::Any: + return mgp::type_any(); case Type::Bool: return mgp::type_bool(); case Type::Int: