Hello,
I am trying to use the objectCreate mutation of GraphQL to create a new object. When I am pushing a simple input (as the one in the example below), the function works perfectly.
When I try to push a more complicated input, I receive various error messages. Most of them are caused because of the first character of the input keys (i.e. when the keys start with characters such as @ or number), as depicted in the example below:
Is there something that I could do for the mutation to accept those characters? Otherwise is there another way to push a new object in the Speckle database (i.e. REST API call)?
Thank you in advance.
Hi Maria!
Sorry for the slow reply, yes, there’s another way to create objects. It consist in streaming the data directly to the Server, and I think it’s preferred over using the objectCreate mutation. You can find sample C# code in the Server Transport, I’m not very familiar with this part, but @dimitrie can clarify further if needed!
PS: Mind you, the any key in the closure dictionary should (eventually) become an object, otherwise you will be creating invalid data (it’s all part of the decomposition api…)