You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is duplication code and breaking of compatibility between VTEX products (Faststore <=> VTEX Apps).
This can be uncomfortable for Headless. As we would have to create customizations to complement the feature and read many documents around to learn the same thing.
We need more compatibility with VTEX IO Apps and our custom apps, and something completely finished.GraphQL Servers of Checkout and Catalog module already exists. And many of custom apps can't be used because it's need to remap typeDefs
Look for this code for VTEX IO App ✅:
The given directive @context(provider: "vtex.store-graphql") is assuming to send to given provider
Please, let's consider compatibility with existing GraphQL apps instead of re-mapping everything from the REST API. The pourpose of faststore/sdk needs to be a use-hook that calls this a existing query in VTEX IO GraphQL Server using swr
Problems
VTEX IO doesn't support introspection
Doing a Hack to introspect by /_v/private/admin-graphql-ide/v0/vtex.store-graphql endpoint works, but comes with GraphQL Schema conflicts of Product type and others like.
Required to use secrets.revealed.json and VtexIdclientAutCookie cookie
Solutions
Solve the conflicts of Introspection by admin-graphql-ide
Categorize all Schemas with namespaces to filter all we want exclude from typeDefs. Works great with @graphql-tools/merge
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is duplication code and breaking of compatibility between VTEX products (Faststore <=> VTEX Apps).
This can be uncomfortable for Headless. As we would have to create customizations to complement the feature and read many documents around to learn the same thing.
We need more compatibility with VTEX IO Apps and our custom apps, and something completely finished.GraphQL Servers of Checkout and Catalog module already exists. And many of custom apps can't be used because it's need to remap typeDefs
Look for this code for VTEX IO App ✅:
We just need to point to correct server by using
stitchSchemas
from@graphql-tools/stitch
andtypeDefs
correctly.Please, let's consider compatibility with existing GraphQL apps instead of re-mapping everything from the REST API. The pourpose of
faststore/sdk
needs to be ause-hook
that calls this a existing query in VTEX IO GraphQL Server usingswr
Problems
/_v/private/admin-graphql-ide/v0/vtex.store-graphql
endpoint works, but comes with GraphQL Schema conflicts ofProduct
type and others like.Solutions
admin-graphql-ide
@graphql-tools/merge
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions