Overview
EverShop provides a comprehensive set of GraphQL queries for retrieving data across all modules. Queries are read-only operations that fetch data without side effects.Catalog Queries
Product Queries
product
Retrieve a single product by ID.id(ID) - Product ID or UUID
currentProduct
Get the current product based on the page context.products
Retrieve a collection of products with filtering.filters([FilterInput]) - Array of filter conditions
eq- Equalneq- Not equalgt- Greater thangteq- Greater than or equallt- Less thanlteq- Less than or equallike- Pattern matchnlike- Not likein- In arraynin- Not in array
productSearch
Search for products.Category Queries
category
Retrieve a single category.id(Int) - Category ID
currentCategory
Get the current category from page context.categories
Retrieve a collection of categories.Collection Queries
collection
Retrieve a product collection by code.code(String) - Collection code
collections
List all collections.Attribute Queries
attribute
Get attribute details.Checkout Queries
Cart Queries
cart
Retrieve a cart by ID.id(String!) - Cart UUID
myCart
Get the current user’s cart.Customer Queries
currentCustomer
Get the authenticated customer’s information.customer (Admin)
Retrieve a specific customer (admin only).customers (Admin)
List all customers with filtering (admin only).Order Queries
order
Retrieve an order by UUID.uuid(String!) - Order UUID
orders (Admin)
List all orders (admin only).Order Status Queries
CMS Queries
cmsPage
Retrieve a CMS page.currentCmsPage
Get the current CMS page from context.cmsPages
List all CMS pages.menu
Retrieve the site menu structure.Base Queries
countries
Get list of countries.allowedCountries
Get countries enabled for the store.provinces
Get provinces for specific countries.Query Best Practices
Request Only What You Need
Request Only What You Need
GraphQL allows you to request exactly the fields you need. Avoid requesting unnecessary data:
Use Variables for Dynamic Queries
Use Variables for Dynamic Queries
Use variables instead of inline values:Variables:
{ "id": "123" }Leverage Fragments
Leverage Fragments
Use fragments to reuse field selections:
Handle Pagination
Handle Pagination
Use filters and limit results for large collections:
Next Steps
Mutations
Learn about data modification operations
Types
Explore all GraphQL types and their fields