Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
de3e42b
add initial structure
Aug 2, 2023
8a0816a
implement date.parse
Aug 3, 2023
bc74ca0
remove cpp date module
Aug 3, 2023
1f3de7e
rename python date module
Aug 3, 2023
d3bae6b
remove cpp date module
Aug 3, 2023
7653423
add date.format draft
Aug 3, 2023
92360ea
add e2e date.format tests
Aug 4, 2023
f322d38
implement label.exists and e2e tests for it
Aug 5, 2023
39bec4e
add missing endline
Aug 5, 2023
5b41866
edit wrong procedure call
Aug 5, 2023
eb487ab
edit by review comments
Aug 7, 2023
84464b4
edit typing error
Aug 8, 2023
5a863a3
format files with black
Aug 9, 2023
71c6435
Merge branch 'main' into T585-T586-MAGE-implement-date
antoniofilipovic Aug 10, 2023
995fe4d
Merge branch 'main' into T585-T586-MAGE-implement-date
imilinovic Aug 11, 2023
cdd5071
Merge branch 'main' into T585-T586-MAGE-implement-date
antoniofilipovic Aug 11, 2023
07ed16d
Merge branch 'main' into T510-MAGE-implement-label
ind1xa Aug 11, 2023
158919a
Merge pull request #304 from memgraph/T510-MAGE-implement-label
antepusic Aug 16, 2023
456a7ba
Merge branch 'main' into T585-T586-MAGE-implement-date
ind1xa Aug 16, 2023
e59093a
Merge pull request #291 from memgraph/T585-T586-MAGE-implement-date
antepusic Aug 17, 2023
ca33435
COnvert
mpintaric55334 Aug 21, 2023
85458a3
Implement convert str2object
mpintaric55334 Aug 22, 2023
476066c
Implement str2object
mpintaric55334 Aug 22, 2023
4e59952
Implement str2object
mpintaric55334 Aug 23, 2023
0b34173
Implement str2object
mpintaric55334 Aug 23, 2023
c39f0cd
merge
mpintaric55334 Aug 23, 2023
2aca436
Merge branch 'main' of https://github.com/memgraph/mage
mpintaric55334 Aug 28, 2023
1536e1c
Formatting changes
mpintaric55334 Aug 29, 2023
731774f
Pull
mpintaric55334 Aug 31, 2023
fa5f222
Merge branch 'main' of https://github.com/memgraph/mage
mpintaric55334 Aug 31, 2023
0cc8e82
Merge branch 'main' of https://github.com/memgraph/mage
mpintaric55334 Sep 1, 2023
7b334da
Merge branch 'main' of https://github.com/memgraph/mage
mpintaric55334 Sep 4, 2023
a180784
Merge branch 'main' into T-add-convert-str2object
mpintaric55334 Sep 4, 2023
df2c4f5
PR changes
mpintaric55334 Sep 6, 2023
c8fa616
Merge branch 'main' into T-add-convert-str2object
mpintaric55334 Sep 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions e2e/convert_test/test_str2object1/file1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"_id","_labels","a","b","prop","did_it","_start","_end","_type"
"0",":Dog","3","[""1"", ""2"", 3]","2","","","",""
"1",":Human","","[[""1"",{""key"": 5}]]","","yes","","",""
"5",":Cat","","{""prop"": {""prop2"": {""key"": 10}}}","","","0","1","loves"
Empty file.
8 changes: 8 additions & 0 deletions e2e/convert_test/test_str2object1/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
query: >
LOAD CSV FROM "/_file1" WITH header AS row
RETURN convert.str2object(row.b) AS list;

output:
- list: [ "1","2", 3]
- list: [["1",{"key": 5}]]
- list: {"prop": {"prop2": {"key": 10}}}
Comment thread
mpintaric55334 marked this conversation as resolved.
9 changes: 9 additions & 0 deletions python/convert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import mgp
from json import loads


@mgp.function
def str2object(string: str) -> mgp.Any:
if string:
return loads(string)
Comment thread
antoniofilipovic marked this conversation as resolved.
return None