Hello Dev
This is my trigger
use system CALL apoc.trigger.install(
'neo4j',
'updateThreshold',
'UNWIND apoc.trigger.propertiesByKey($assignedNodeProperties,"threshold") as properties
with properties.node AS node, properties.key AS key, properties.old AS oldValue, properties.new AS newValue
CALL apoc.load.jsonParams("https://function-sli-digital-twin.azurewebsites.net/api/create-threshold-request",
{method:"POST",\`Content-Type\`:"application/json; charset=utf-8"},
apoc.convert.toJson({oldValue:oldValue,newValue:newValue,key:key})) yield value return value
',{phase:'before'});`
when i will update my threshold value then this trigger should call and send respective data with this API
Trigger is working but request body is getting null
This is my javscript code
app.http('create-threshold-request', {
methods: ['POST'],
authLevel: 'function',
handler: async (req, context) => {
context.log("Body Data " + req.body);
}
}
When iam trying to call this API on postman its working fine no issue at all
is there any another approch to send data
please help.