Frontify / frontify-aem-connector

Frontify Adobe Experience Manager
MIT License
4 stars 4 forks source link

Address 2021 July breaking API changes - handleUpdateCategoriesList #14

Closed ValtechDeBruyneYves closed 3 years ago

ValtechDeBruyneYves commented 3 years ago

One of the graphQL queries managed to fly under the radar

File: https://github.com/Frontify/frontify-aem-connector/blob/master/ui.frontend/src/main/webpack/site/components/ffy-filter.js Line: 22 old: asset_count new: asset_count: assetCount This change does not have any impact on the rest of the code as this uses an alias. The response will still show the property “asset_count” ui.frontend/src/main/webpack/site/components/ffy-filter.js import { GraphQLClient } from 'graphql-request';

export async function handleUpdateCategoriesList(endpoint, domain, callback) {

const graphQLClient = new GraphQLClient(endpoint, {