I’m having trouble querying shared parameters sent from Revit in the GraphQL interface.
The parameters are sent to Speckle, as I can see them in the data view.
When querying OOTB parameters we normally use the applicationInternalName to query the parameter, but for shared parameters the shared parameter name is not transferred - only a GUID-like string is available.
I’m not sure if the cause is the connector not translating the shared parameter name to the applicationInternalName or if I should be able to use the GUID when querying.
I can reproduce this. Looks like having a - character in the parameter lookup borks the query. I’ll bring this up internally and let you know on what we can do.
we’ve looked into this again, and currently there is a limitation on our end that makes querying parameters with - characters in their names not supported. Basically we’re passing the query over to our PostgreSQL database, that doesn’t support the - character in property queries.
As a workaround all i can think of is to receive the full parameters object via graphql and do the paramter lookup from the return data in your code.
Thanks for getting back to me on this subject.
I did figure the workaround out myself, but thought that it was a bit unnecessary to fetch all of the data in parameters.
I guess this solution works for now.