How do I validate that my import was successful?

You can use Mapped's GraphQL Explorer to validate that your data was imported to the Graph. Review Places and Relationships in our Developer Docs for a general overview.

To review all assets recently updated by the CSV connector you just created, you'll need its connectorId. You can find connectorId either in the Console through the Building's grid view, or you can find it in the URL in your browser when you view the connector config, eg:
https://app.mapped.com/connectors?connectorTypeId=csv&connectorId=CONSC3M2DN5Hqo9HFeracfqRSY&initialSection=overview

You can also query individual Zones, Spaces and Things by their Mapped IDs - just replace the connectorId filter with id and swap the connectorId value for the entity's Mapped ID in the queries below.

Validate Multi-Space Zones

Read more: How to create a Multi-Space Zone

Zones

{
  zones(filter: {connectedDataSourceId: {eq: "CONQvjxnEYG7UdVqd55nFPBr"}}) {
    id
    name
    exactType
    mappingKey
    dateCreated
    dateUpdated
    hasPart {
      id
      name
      exactType
    }
    isFedBy {
      ...on Thing {
        id
        name
        exactType
        hasLocation {
          id
          name
          exactType
        }
      }
    }
  }
}

Spaces

{
  spaces(filter: {connectedDataSourceId: {eq: "CONQvjxnEYG7UdVqd55nFPBr"}}) {
    id
    name
    exactType
    mappingKey
    dateCreated
    dateUpdated
    isPartOf {
      id
      name
      exactType
      isFedBy {
        ...on Thing {
          id
          name
          exactType
          hasLocation {
            id
            name
            exactType
          }
        }
      }
    }
  }
}

Things

{
  things(filter: {connectedDataSourceId: {eq: "CONQvjxnEYG7UdVqd55nFPBr"}}) {
    id
    name
    exactType
    mappingKey
    dateCreated
    dateUpdated
    feeds {
      ...on Zone {
        id
        name
        exactType
        hasPart {
          id
          name
          exactType
        }
      }
    }
    hasLocation {
      id
      name
      exactType
    }
  }
}

Validate Multi-Zone Spaces

Read more: How to create a Multi-Zone Space

Zones

{
  zones(filter: {connectedDataSourceId: {eq: "CONSC3M2DN5Hqo9HFeracfqRSY"}}) {
    id
    name
    exactType
    mappingKey
    dateCreated
    dateUpdated
    isPartOf {
      id
      name
      exactType
    }
    isFedBy {
      ... on Thing {
        id
        name
        exactType
        hasLocation {
          id
          name
          exactType
        }
      }
    }
  }
}

Spaces

{
  spaces(filter:{connectedDataSourceId:{eq:"CONSC3M2DN5Hqo9HFeracfqRSY"}}) {
    id
    name
    exactType
    mappingKey
    dateCreated
    dateUpdated
    hasPart {
      id
      name
      exactType
      isFedBy {
        ...on Thing {
          id
          name
          exactType
          hasLocation {
            id
            name
            exactType
          }
        }
      }
    }
  }
}

Things

{
  things(filter: {connectedDataSourceId: {eq: "CONUYxb4M2xPjXeuPP2onvuWd"}}) {
    id
    name
    exactType
    mappingKey
    dateCreated
    dateUpdated
    feeds {
      ...on Zone {
        id
        name
        exactType
        isPartOf {
          id
          name
          exactType
        }
      }
    }
    hasLocation {
      id
      name
      exactType
    }
  }
}

Validate Buildings

Use this query to review any Buildings you might have just created with the CSV connector along with its identities. Note that there won't be any results if the Building was already created previously by another connector.

{
  buildings(filter:{connectedDataSourceId:{eq:"CONSC3M2DN5Hqo9HFeracfqRSY"}}) {
    id
    name
    exactType
    mappingKey
    dateCreated
    dateUpdated
    identities {
      ...on PostalAddressIdentity {
        __typename
        value
      }
      ...on ExternalIdentity {
        __typename
        value
        scope
        scopeId
      }
    }
  }
}

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request