Hi Speckle,
I am trying to send a set of objects to the Speckle Server and then be able to query them using GraphQL API. The queries are initially made based on the stable version of the GH Connector (2.5.2).
Now, the problem is when sending objects to the Speckle Server (2.5.x) as Detached
using the new Send component in GH Connector 2.6.0 beta. The object(s) in each Branch are wrapped in a new Base
object (let’s call it the Branch Object), and this Branch Object is sent to server as Detached
; but the actual objects that are nested inside it are not detached. This turn each Branch Object into a big object with all the children as nested, although everything is expected to be saved as separate objects. I guess this also means that changing one object in a branch will make all the objects in that branch to be uploaded again.
This breaks the queries as well, since the keys that are queried are no longer in the root object.
My expected behavior was for both the Branch Object and the nested objects (marked red) to be sent as detached objects.
Please let me know if there is something I am missing . . .
GH File:
Result:
Quick Fix:
The quick fix that solves the problem is to wrap the object as Detached
in another Base
object.
Quick Fix: