Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.5 kB
2
Indexable
Never
static String getCheckSheetFormItem(String checkSheetId) => '''
 query {
  checksheets:apiV1DbDataV1DigitalLogsheetChecksheets(
    where: "(Id,eq,$checkSheetId)",
    nestedAssetsReadFields: "Qrcode"
    nestedChecksheetItemsListFields: "JsonItem,Id,Value,Remark,AssetItemId,AssetItemsRead,ChecksheetId,AssetId,AssetItemId"
    nestedChecksheetItemsListWhere: "(Status,eq,1)"
    nestedChecksheetItemsListLimit: 100,
     nestedCreatedByReadFields: "Name"
    nestedUpdatedByReadFields: "Name"
  ){
    list {
      parentAssetId
      id
      assetId
      assetsRead {
        qrcode
      }
      code
      dateServer:dateChecksheet
      bidang
      name:formTitle
      jabatan
      subBidang
      shift
      operator
      status
      unit
      images:jsonImages
      createdByRead {
        name
      }
      updatedByRead {
        name
      }
      items:checksheetItemsList {
        id
        checksheetId
        assetId
        assetItemId
        value
        remark
        name
        value
        typeInput
        isRequired
        remarkIsRequired
        standardValue
        xparam:parameter
        arrParameters
        range:rangeItem
        status
        assetItemsRead {
          name
          value
          typeInput
          isRequired
          remarkIsRequired
          standardValue
          parameter
          arrParameters
          range:rangeItem
          status
        }
      }
    }
  }
}
  ''';