Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

graphql: unsure how to get delivery profiles

Solved

graphql: unsure how to get delivery profiles

dgamnmma3
Tourist
7 1 1

(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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

 

 

 

 

 

 

Accepted Solution (1)

dgamnmma3
Tourist
7 1 1

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
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }        
      }
    }
  }
}

View solution in original post

Reply 1 (1)

dgamnmma3
Tourist
7 1 1

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
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }        
      }
    }
  }
}