Add any type to C++ mgp wrapper
This commit is contained in:
parent
1b85d77e9e
commit
eb22edfd35
@ -946,6 +946,7 @@ class Duration {
|
|||||||
/* #region Value */
|
/* #region Value */
|
||||||
enum class Type : uint8_t {
|
enum class Type : uint8_t {
|
||||||
Null,
|
Null,
|
||||||
|
Any,
|
||||||
Bool,
|
Bool,
|
||||||
Int,
|
Int,
|
||||||
Double,
|
Double,
|
||||||
@ -1491,6 +1492,8 @@ inline bool ValuesEqual(mgp_value *value1, mgp_value *value2) {
|
|||||||
/// @brief Converts C++ API types to their MGP API equivalents.
|
/// @brief Converts C++ API types to their MGP API equivalents.
|
||||||
inline mgp_type *ToMGPType(Type type) {
|
inline mgp_type *ToMGPType(Type type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case Type::Any:
|
||||||
|
return mgp::type_any();
|
||||||
case Type::Bool:
|
case Type::Bool:
|
||||||
return mgp::type_bool();
|
return mgp::type_bool();
|
||||||
case Type::Int:
|
case Type::Int:
|
||||||
|
Loading…
Reference in New Issue
Block a user