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

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

Date- Sep 24,2022

3248

Neo4J Neo4j Driver

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.

Comments

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 Youtube Subscribers!

First click on Subscribe Now and then subscribe the channel and come back here.
Then Click on "Verify and Download" button for download link

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

Please Subscribe to support us

Thank you for Downloading....!

Please Subscribe to support us

Continue with Downloading
Be a Member
Join Us On Whatsapp Join Us On Facebook

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 © 2025 by Code2night. All Rights Reserved

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