fragments.graphql

# Default fragment definition # Groups of fields for a query (use like _FragmentName) fragment _IStatus on IStatus { id name } fragment _Category on Category { id title } fragment ProductsInCategory on Category { id products { ... _ProductList } } fragment _Company on Company { company_name company_id vat_id vat_id2 } fragment _Person on Person { name surname phone email } fragment _Address on AddressData { street descriptive_number orientation_number city zip country } fragment _Currency on Currency { symbol code } fragment _WarehouseItem on WarehouseItem { id warehouse_number ean } fragment _Price on Price { value formatted is_net_price currency { ... _Currency } } fragment _Order on Order { id order_num status { ... _IStatus } customer { ... _Person ... _Company } delivery_address { ... _Address } invoice_address { ... _Address } price_elements { id title type tax_rate value price { ... _Price } } items { item_label ean import_code warehouse_number quantity tax_rate weight { value unit } recycle_fee { ... _Price } price { ... _Price } } vat_summary { amount tax_rate tax_base } sum { ... _Price } } fragment _Invoice on Invoice { id order { order_num } invoice_num supplier { company_name } customer { ... _Person ... _Company } invoice_address { ... _Address } price_elements { id title type tax_rate value price { ... _Price } } items { item_label warehouse_number import_code ean quantity weight { value unit } recycle_fee { value currency { ... _Currency } } price { ... _Price } } sum { ... _Price } } fragment _Preinvoice on Preinvoice { preinvoice_num } fragment _Product on Product { title link short main_category { ... _Category } attribute_category { ... _Category } attributes { id title values { id image value } } assigned_categories { ... _Category } warehouse_items { ... _WarehouseItem } } # Pagination fragment fragment _PageInfo on PageInfo { hasNextPage nextCursor hasPreviousPage previousCursor } # Fragments for entity list fragment _InvoiceList on InvoiceList { pageInfo { ... _PageInfo } data { ... _Invoice } } fragment _OrderList on OrderList { pageInfo { ... _PageInfo } data { ... _Order } } fragment _ProductList on ProductList { pageInfo { ... _PageInfo } data { ... _Product } } fragment _OrderStatus on OrderStatus { id, name } fragment _WarehouseStatus on WarehouseStatus{ id, name, allow_order }