Function map_delete

Source
fn map_delete(map: MapRef<'_>, key: Option<ScalarRefImpl<'_>>) -> MapValue
Expand description

Deletes a key-value pair from the map.

ยงExample

query T
select map_delete(map{'a':1, 'b':2, 'c':3}, 'b');
----
{a:1,c:3}

query T
select map_delete(map{'a':1, 'b':2, 'c':3}, 'd');
----
{a:1,b:2,c:3}

TODO: support variadic arguments