Request

Response

    Identify Item Configurations

    This topic will help you determine if a model is a configuration member.

    You will use the following operation in this topic:

    TypeOperationDescription
    Query model Retrieves model details.

    Identify if a Model is a Configuration Member

    The following steps demonstrate how to run the model query to determine if a model is a configuration member.

    1. Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.

      Query

      query GetModel($modelId: ID!) {
         model(modelId: $modelId) {
            id
            name {
               value
            }
            isConfiguration
         }
      }
      
      Show More
    2. In the Query Variables Pane, enter the value for modelId. To learn how to obtain the modelId (tipRootModel), refer to Retrieve Items.

      Query Variables

      {
         "modelId": "bW9kZWx-d00wSVJmdmczT1VLTHZsYjJ4dDJMdF9MMkN-Y3hTMXhkYkFmSjFZZWZUSldUQU9zUV9hZ2E"
      }
      
    3. Click Play. If the isConfiguration field is true, the requested component version of the item is a member of a configuration.

      Response

      {
         "data": {
            "model": {
               "id": "bW9kZWx-d00wSVJmdmczT1VLTHZsYjJ4dDJMdF9MMkN-Y3hTMXhkYkFmSjFZZWZUSldUQU9zUV9hZ2E",
               "name": {
                  "value": "A"
               },
               "isConfiguration": false
            }
         }
      }
      
      Show More