graphql: unsure how to get delivery profiles

Solved
dgamnmma3
New Member
2 1 0

(Solved - see reply)

Hello I would like to the list of all products in delivery Profiles. the following GraphQL works. I would like to get the names of the delivery profiles also returned ,but unsure of how to do that.

 

Thanks

 

 

query {
  deliveryProfiles (first: 5) {
    edges {
      node {
        profileItems (first: 10) {
          edges {
            node {
              product {
                  id
                  handle
              }
              variants (first: 10) {
                edges {
                  node {
                    id
                    title
                    sku
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

 

 

 

 

 

 

0 Likes
dgamnmma3
New Member
2 1 0

This is an accepted solution.

Solved

 

query {
  deliveryProfiles (first: 2) {
    edges {
      node {
        name
        profileItems (first:  {
          edges {
            node {
              product {
                id
                handle
              }
     
            }
          }
        }
        profileLocationGroups {
          locationGroupZones(first: 2) {
            edges {
              node {
                methodDefinitions(first: 2) {
                  edges {
                    node {
                      rateProvider {
                        ... on DeliveryRateDefinition {
                          id
                          price {
                            amount
                          }
                        }
                        ... on DeliveryParticipant {
                          id
                          fixedFee {
                            amount
                            currencyCode
                          }
                          percentageOfRateFee
                          participantServices {
                            active
                            name
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }        
      }
    }
  }
}
0 Likes