|
Hi does anyone know the endpoint for performing ECSQL? or any documentation regarding it?.. thanks, |
Replies: 2 comments 7 replies
|
Currently there is no REST endpoint to do this, but you can use iTwin.js library to achieve this. ECSQL queries can be run using IModelConnection.createQueryReader from @itwin/core-frontend package (code examples). Please note, that if you're not yet using iTwin.js library, you'll need to make sure that IModelApp is initialized with a valid authorization client. |
|
There is now a REST endpoint - POST https://api.bentley.com/imodel-query/itwins/{itwin}/imodels/{imodel}/changesets/{changeset}/queries I have been able to use basic queries, however I have found that it does not like JSON strings in results |

Currently there is no REST endpoint to do this, but you can use iTwin.js library to achieve this.
ECSQL queries can be run using IModelConnection.createQueryReader from @itwin/core-frontend package (code examples). Please note, that if you're not yet using iTwin.js library, you'll need to make sure that IModelApp is initialized with a valid authorization client.