← back to Reid Witlin Onboarding
inspect_handle_conflicts.py
20 lines
#!/usr/bin/env python3
"""Read-only inspection of the two final productSet handle conflicts."""
import json
import create2
QUERY = """
query($handle: String!) {
productByHandle(handle: $handle) {
id handle title status vendor
variants(first: 5) { nodes { sku } }
}
}
"""
handles = [
"chilhowie-alaska-architectural-fabrics",
"haymarket-obsidian-architectural-fabrics",
]
print(json.dumps([create2.gql(QUERY, {"handle": h}) for h in handles], indent=2))