The old parameter syntax `{param}` is no longer supported | Code2night.com
Code2night
  • Home
  • Blogs
  • Tutorial
  • Post Blog
  • Members
    • Register
    • Login
  1. Home
  2. Blogpost
24 Sep
2022

The old parameter syntax `{param}` is no longer supported

931

Neo4J

Neo4J is a graph database that has been used a lot now a days. It supports many framework including .Net. So sometimes while working with .net framework you may recieve syntax error while executing query. So for example the query is

MATCH (a:Person)-[:ACTED_IN]->(m:Movie) RETURN m.title as movie, collect(a.name) as cast LIMIT {limit}

Now, when you try to execute the query in asp.net. You will get a exception saying


The old parameter syntax `{param}` is no longer supported. Please use `$param` instead (line 1, column 96 (offset: 95))
"MATCH (a:Person)-[:ACTED_IN]->(m:Movie) RETURN m.title as movie, collect(a.name) as cast LIMIT {limit}"

This error comes because of the syntax of the query we are using for parameters was supported by old versions. So the incorrect syntax is {parameter} as in new versions we have to write $parameter. So the correct query will be


MATCH (a:Person)-[:ACTED_IN]->(m:Movie) RETURN m.title as movie, collect(a.name) as cast LIMIT $limit

So, now have a look at the limit parameter in the end. We have used $limit. As that syntax is supported by new versions of Neo4J Driver. Now run the application and you will not face the error The old parameter syntax `{param}` is no longer supported. Please use `$param` instead.   So this is how we will solve Neo4J driver syntax issue The old parameter syntax `{param}` is no longer supported in Asp.net.

  • |
  • Neo4J , Neo4j Driver , Neo4J in Aspnet , Graph Database

Comments

Follow Us On Social Media - Like Us On Facebook

Tags

LinkedinLogin
LinkedinProfile
GetLinkedinProfile
C#
Aspnet
MVC
Linkedin
ITextSharp
Export to Pdf
AspNet Core
AspNet
View to Pdf in Aspnet
Model Validation In ASPNET Core MVC 60
Model Validation
Model Validation In ASPNET Core MVC
Model Validation In ASPNET
Image Compression in AspNet
Compress Image in c#
AspNet MVC
Free Download for New Subscribers!

Subscribe and Click on Verify and Download for download link

Subscribe Now | 671
Download
Support Us....!

Please Subscribe to support us

Thank you for Downloading....!

Please Subscribe to support us

Continue with Downloading

Welcome To Code2night, A common place for sharing your programming knowledge,Blogs and Videos

  • Panipat
  • info@Code2night.com

Links

  • Home
  • Blogs
  • Tutorial
  • Post Blog

Popular Tags

Copyright © 2023 by Code2night. All Rights Reserved

  • Home
  • Blog
  • Login
  • SignUp
  • Contact
  • Terms & Conditions
  • Refund Policy
  • About Us
  • Privacy Policy
  • Json Beautifier