-
Notifications
You must be signed in to change notification settings - Fork 18
[GraphQL] Deprecation policy
This document describes a deprecation policy for GraphQL schema in scope of Storefront Application project
- GraphQL Server (NodeJS) will proxy requests to Magento Monolith GQL (see diagram here) to retrieve fields marked as deprecated in GQL
- Deprecated in GQL fields should not be exposed through Storefront API
- do not expose field through Storefront API that we "don’t want to have"
- proceed with 1st option below and add field to SF or deprecate from GQL after analyze
Problem: What options do we have to solve the problem “field X is not deprecated in GQL, but field X is not present in Storefront API”
We have only 3 options here:
-
analyze use-cases with PWA/ECE and
1.1. if no real use-cases: deprecate field in GQL with prosing another approach
1.2. if have real use-case: add field X to Storefront API
-
treat field X as “deprecated” and do proxy on Monolith
-
add field X to Storefront API
Here some details regarding "1st" option and problem in general
We want to consider SF API as independent API which should reflect Storefront needs and not blindly copy existing GQL schema. That's why we should follow 1st option and analyze GQL fields that we don’t want to have on Storefront API and deprecate/add them only after analyzing existing use-cases
- Home
- Onboarding
- Development:
- Project agreements
- Time Off Tracking List
- Design Documents:
- QA
- Demo
- Contacts