user23640624
user23640624

Reputation:

Why is Neo4J not allowing white spaces in my field inserts?

I have the following statement:

MERGE (Limited_Edition_Independence_Day_TShirt:Conversation { name: "Limited_Edition_Independence_Day_TShirt", is_snippet: "false", title: "Limited Edition Independence Day T-Shirt", summary: "", status: "", date: "2024-06-02 12:48:51"})

That produces the following error:

Invalid input '?': expected "(", "ALL", "ANY" or "SHORTEST" (line 1, column 8 (offset: 7))
"MERGE (Limited_Edition_Independence_Day_TShirt:Conversation { name: "Limited_Edition_Independence_Day_TShirt", is_snippet: "false", title: "Limited Edition Independence Day T-Shirt ", summary: "", status: "", date: "2024-06-02 12:48:51"})"
        ^

If I change out the quotes for back ticks, I then get this error:

Invalid input '?': expected "(", "ALL", "ANY" or "SHORTEST" (line 1, column 8 (offset: 7))
"MERGE (Limited_Edition_Independence_Day_TShirt:Conversation { name: "Limited_Edition_Independence_Day_TShirt", is_snippet: "false", title: `Limited Edition Independence Day T-Shirt`, summary: "", status: "", date: "2024-06-02 12:48:51"})"
        ^

Some times, some commands go through and the exact same format fails. Some times I get weird "Variable not defined" errors - all around the same title field.

What am I doing wrong?!?

Here is another example that fails no matter what I use - quotes, back ticks, etc. In this case I thought the question mark was the issue so I used back ticks but it did not help.

MERGE (Megyn_Kelly_Trump_Convicted__Now_What_With_Aidala_Eiglarsh_Dershowitz_Geragos_Aronberg_Davis_Holloway_and_2_more_videos:Conversation { name: "Megyn_Kelly_Trump_Convicted__Now_What_With_Aidala_Eiglarsh_Dershowitz_Geragos_Aronberg_Davis_Holloway_and_2_more_videos", is_snippet: "false", title: `Megyn Kelly: `Trump Convicted - Now What? With Aidala, Eiglarsh, Dershowitz, Geragos, Aronberg, Davis, Holloway and 2 more videos`, summary: "", status: "", date: "2024-06-01 19:39:19"})

Upvotes: 1

Views: 32

Answers (0)

Related Questions