"""Queries.""" UNSUBMIT_PRODUCT = """ mutation( $productId: ID!, ) { unsubmitProduct(input: { productId: $productId }) { result } } """ CREATE_PRODUCT_CORRECTION = """ mutation($data: CreateProductCorrectionInput!) { createProductCorrection(input: $data){ releaseCorrectionId } } """ GET_PRODUCT_BY_UPC = """ query($upc: String!) { productByUpc(upc: $upc) { productId status notForDistribution releaseCorrectionId releaseCorrection { releaseId releaseCorrectionId } displayStatus } } """ CREATE_PRODUCT_CORRECTION_DETAIL = """ mutation( $productId: Int!, $releaseCorrectionId: Int!, $corrections:[CorrectionDetailInput!]! ) { createProductCorrectionDetail(input: { productId: $productId releaseCorrectionId: $releaseCorrectionId corrections: $corrections }) { correctionDetailId keyId tableName fieldName } } """