-
|
Hi does anyone know the endpoint for performing ECSQL? or any documentation regarding it?.. thanks, |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.

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.