Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add graphQL schema

fowczarek4b9df61b7c03
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index b578c49e6d..7076174265 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -18,17 +18,6 @@ type Address implements Node {
phone: String
}
-type AddressCountableConnection {
- pageInfo: PageInfo!
- edges: [AddressCountableEdge!]!
- totalCount: Int
-}
-
-type AddressCountableEdge {
- node: Address!
- cursor: String!
-}
-
type AddressCreate {
errors: [Error]
address: Address
@@ -295,13 +284,13 @@ type Checkout implements Node {
translatedDiscountName: String
voucherCode: String
lines: [CheckoutLine]
- payments(before: String, after: String, first: Int, last: Int, id: ID): PaymentCountableConnection
+ payments: [Payment]
id: ID!
- totalPrice: TaxedMoney
- subtotalPrice: TaxedMoney
- shippingPrice: TaxedMoney
availableShippingMethods: [ShippingMethod]
isShippingRequired: Boolean
+ shippingPrice: TaxedMoney
+ subtotalPrice: TaxedMoney
+ totalPrice: TaxedMoney
}
type CheckoutBillingAddressUpdate {
@@ -624,7 +613,7 @@ type Fulfillment implements Node {
status: FulfillmentStatus!
trackingNumber: String!
shippingDate: DateTime!
- lines(before: String, after: String, first: Int, last: Int): FulfillmentLineCountableConnection
+ lines: [FulfillmentLine]
statusDisplay: String
}
@@ -656,17 +645,6 @@ type FulfillmentLine implements Node {
quantity: Int!
}
-type FulfillmentLineCountableConnection {
- pageInfo: PageInfo!
- edges: [FulfillmentLineCountableEdge!]!
- totalCount: Int
-}
-
-type FulfillmentLineCountableEdge {
- node: FulfillmentLine!
- cursor: String!
-}
-
input FulfillmentLineInput {
orderLineId: ID
quantity: Int
@@ -983,7 +961,7 @@ type Order implements Node {
lines: [OrderLine]!
fulfillments: [Fulfillment]!
events: [OrderEvent]
- payments(before: String, after: String, first: Int, last: Int, id: ID): PaymentCountableConnection
+ payments: [Payment]
actions: [OrderAction]!
availableShippingMethods: [ShippingMethod]
number: String
@@ -1330,11 +1308,9 @@ type Product implements Node {
chargeTaxes: Boolean!
taxRate: String!
weight: Weight
- voucherSet(before: String, after: String, first: Int, last: Int): VoucherCountableConnection
- saleSet(before: String, after: String, first: Int, last: Int): SaleCountableConnection
- variants(before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
- images(before: String, after: String, first: Int, last: Int): ProductImageCountableConnection
- collections(before: String, after: String, first: Int, last: Int): CollectionCountableConnection
+ variants: [ProductVariant]
+ images: [ProductImage]
+ collections: [Collection]
url: String!
thumbnailUrl(size: Int): String
availability: ProductAvailability
@@ -1397,17 +1373,6 @@ type ProductImage implements Node {
url(size: Int): String!
}
-type ProductImageCountableConnection {
- pageInfo: PageInfo!
- edges: [ProductImageCountableEdge!]!
- totalCount: Int
-}
-
-type ProductImageCountableEdge {
- node: ProductImage!
- cursor: String!
-}
-
type ProductImageCreate {
errors: [Error]
product: Product
@@ -1517,7 +1482,7 @@ type ProductVariant implements Node {
priceOverride: Money
product: Product!
attributes: [SelectedAttribute!]!
- images(before: String, after: String, first: Int, last: Int): ProductImageCountableConnection
+ images: [ProductImage]
trackInventory: Boolean!
quantity: Int!
quantityAllocated: Int!
@@ -1951,7 +1916,7 @@ type User implements Node {
id: ID!
lastLogin: DateTime
email: String!
- addresses(before: String, after: String, first: Int, last: Int): AddressCountableConnection
+ addresses: [Address]
isStaff: Boolean!
token: UUID!
isActive: Boolean!