I am trying to fetch Analysis Results from my ETABS model using GraphQL, I am trying to test on Apollo Server, but I cannot find in the documentation for the query I need, did I miss anything? How can I fetch this information?
Update: I found the analysis results by using this
The returned data give me a lot of results; is there a way I can filter the data returned to get only analysisResults? and furthermore, filter to get specific result in analysisResults?
you will need to add the “children” in the query and then use the Arguments to fetch exactly what you need. You can use the “select” argument to choose specificly what property you need. Make sure to type the full path correctly.
Hi @Nikos cc: @bjoern , I tried this approach, not sure if I missed anything but using “children” in the query does not give the analysisResults data.
I think the data coming back is just geometry data.
Since all the analysisResults are attached to the root object, querying the objects for their children are not going to be helpful to retrieve them. We did this design on purpose based on performance concerns.
This snippet will return the root object -including the results- as a JSONObject which means not queryable. We are working on some solutions to assign results to the corresponding objects in the post-process.
What is your workflow though? Could you parse this JSON in the client-side?
Per my understanding, the only way to get the analysisResults is by querying the root object, and this is not queryable right?
What is your workflow though? Could you parse this JSON in the client-side?
I am fetching data from Speckle model to perform some reporting task and display results on a web app. Yes, I can parse this JSON in client-side, I just want to improve a little performance for the web by not holding some unused information in the returned data (since I do not know what results users might push into Speckle, maybe someone will try to push a bunch of redundant data to it)