Files
2025-12-04 15:23:52 +01:00
..
2025-12-04 14:58:52 +01:00
2025-12-04 15:23:52 +01:00
2025-12-04 14:58:52 +01:00

XMLtoGraphQL

Function and xslt skeleton to turn XML products data to same as you would get from graphQL api

Warning

Not every single piece of data is being handled by that function.

Usage

With JS code you only need to put functions in script.js inside your code and then use idmGetGraphQLData to get graphQL'like data

const data = await idmGetGraphQLData("/pl/menu/perfumy/perfumy-meskie-944.html");
console.log(data);

With XSLT you will get script tag with JSON data inside. You just need to read that in your function

Created by • IdoMods • 2025