hurley icon indicating copy to clipboard operation
hurley copied to clipboard

How to pass argumnet to invoke create method from terminal?

Open satyamyesj opened this issue 5 years ago • 1 comments

I am bootsraping project with convector-cli and creating network topolgy with hurley using follwing commands.

conv new car -c car cd car npm i npm run env:restart npm run cc:start --car

After successfully installing chaincode. I want to test it by submitting create query. What I got from documenatation is that I have to enter floowing command

hurl invoke car car_create [args]

Now create require Car as argument which of type ConvectorModel having id, name, created, modified fields, how do I pass it?

satyamyesj avatar Jan 31 '20 13:01 satyamyesj

You need to pass the args as strings, so if it's a model you'll need '{"id":"1","name":"Test",...}'

diestrin avatar Jan 31 '20 20:01 diestrin