I loaded “jsonpath” in the libs section
and try use it in JSOBJECT
export default {
test: async() => {
storeValue(“env”, “localhost:8080”);
let response = await API_SOLR.run();
console.log(response);
let test = jsonpath.query(response, “$[?(@.item.name.startsWith(primary
))]”);
console.log(test);
}
}
when run i get “ReferenceError: jsonpath is not defined”
Hi there!
this behaviour is a bit weird. I tried to reproduce the error on my end but it does work for me.
Could you invite support@appsmith.com as Developer to your workspace and share the link of your app with us so we can debug it?
unfortunately it is not possible : it is in internal network
i attach screenshot of the solution
By rewriting the query I no longer get error
Thanks for your support