Making GraphQL queries that include spaces in property names

Hi,

We use to query for eg properties.Other.Family which does not seem to work anymore?

How can we query for properties.Property Sets.Other.Family when it includes whitespace?

We are using below query to get properties.Attributes but we get an error when trying to get properties.Property Sets.

query Query {
  project(id: "projectid") {
    object(id: "objectid") {
      children(select:["properties.Property Sets"]) {
        totalCount
        objects {
          id
          data
        }
      }
    }
  }
}

Try .\"property sets\" or .property\\ sets

1 Like

Thanks .property\\ sets seems to work. How can we query for the old IFC data structure at https://app.speckle.systems/ while changing our queries to the new data structure?

Are you asking how you can use your old queries without updating them?
If so, then, short answer is you will need to update them.

But to give users some flexibility, we do have a mechanism to trigger an import with the previous importer. This might unblock you in the short term.


For new file uploads, if the name of your file ends with .dotnetimporter.ifc when you upload it, then the old IFC importer will be used.

We will only offer this capabilities for a short period of time. We’ve committed to offer this for at least two weeks from when we made the announcement here IFC File Imports Get Some Love! - New Features - Reliability, IfcSpaces, Attributes, More Properties 6 days ago.

Thanks, our intention is to update as soon as possible, though our queries stopped working with the new data structure so it’s just to keep them working while updating them.

What’s the best way to follow changes such as this to be able to prep for changes before they are released?