LakshyaNandwana commented on issue #640:
URL: https://github.com/apache/age/issues/640#issuecomment-1790636638

   I'm currently working on updating values using the following code block:
   
   ```csharp
   try
   {
       var connString = 
"Host=myserver;Username=puser;Password=psqlpw;Database=mydatabase";
       using var conn = new NpgsqlConnection(connString);
       await conn.OpenAsync();
       Console.WriteLine("Connection Successful");
   
       using var cmd = new NpgsqlCommand("SELECT * FROM 
ag_catalog.cypher('mydata', $$ MATCH(v:Device {DeviceName: 'My Fancy Device'}) 
SET v.specversion = '3.0' RETURN v $$) as (v agtype) ;", conn);
       cmd.AllResultTypesAreUnknown = true;
       await cmd.ExecuteNonQueryAsync();
       // var reader = cmd.ExecuteReader();
       // reader.Close();
   }
   catch (Exception ex)
   {
       Console.WriteLine(ex.Message);
   }
   
   > I encountered an error: "type 'agtype' does not exist." 
   Do you have any suggestions for executing this update command?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to