store-graphql
store-graphql copied to clipboard
GraphQL schema and resolvers for the VTEX Commerce Stores API
VTEX Store GraphQL
Description
This project is a GraphQL API build in our VTEX IO Platform as an abstraction of all VTEX public REST API that our commerce stores needed.
:loudspeaker: Disclaimer: Don't fork this project; use, contribute, or open issue with your feature request.
Release schedule
| Release | Status | Initial Release | Maintenance LTS Start | End-of-life |
|---|---|---|---|---|
| [2.x] | Current Release | 2018-03-05 | ||
| [3.x] | Unscheduled | ---------- |
Table of Content
- VTEX Store GraphQL
- Description
- Release schedule
- Table of Content
- Depreaction Notices
- Usage
- Queries
- Catalog
- Logistics
- Checkout
- OMS
- Profile System
- Mutations
- Checkout
- Profile System
- Contributing
- Troubleshooting
- Contributors
Depreaction Notices
The queries facets, product, products, productSearch, autocomplete, searchMetadata and productsByIdentifier were deprecated. They were moved to a new app vtex.search-graphql, use the queries from that app from now on.
Usage
TODO
Queries
Catalog
product- Returns a specified product - DEPRECATEDproducts- Returns products list filtered and ordered - DEPRECATEDfacets- Returns facets category - DEPRECATEDcategory- Returns a specified categorycategories- Returns categories treebrand- Returns a specified brandbrands- Returns brands listpagetype- Returns the page type based on path and query
Logistics
shipping- Returns orderForm shipping simulation
Checkout
orderForm- Returns checkout cart detailssearchOrderForm- Returns a specified checkout cart details
OMS
orders- Returns user orders detailsorder- Returns a specified user orderuserLastOrder- Returns the last order made by a logged in customer
Profile System
profile- Returns user profile details
VTEXID
loginSessionsInfo- Returns an object with currently active user login sessions and the ID of the current session
Mutations
Checkout
addItemupdateItemsupdateOrderFormProfileupdateOrderFormShippingupdateOrderFormPaymentupdateOrderFormIgnoreProfileaddOrderFormPaymentTokensetOrderFormCustomDatacreatePaymentSessioncreatePaymentTokenscancelOrder
Profile System
createAddressupdateProfileupdateAddressdeleteAddress
VTEXID
logOutFromSession- Logs out from a specific login session (this can't be the current one - it doesn't delete the cookie)
Contributing
TODO
Troubleshooting
You can check if others are passing through similar issues here. Also feel free to open issues.
Contributors
Thanks goes to these wonderful people (emoji key):
Reginaldo =» |
Julio Moreira =» |
gustavopvasconcellos =» |
Lucas Yamamoto =» |
Lucas Pacheco =» |
Beatriz Miranda =» |
Gabriel Carafizi =» |
Marcos André Suarez Ewbank =» |
leoWorkingGood =» |
This project follows the all-contributors specification. Contributions of any kind welcome!
Upcoming documentation: