solidus_graphql_api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +93 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +62 -0
- data/CHANGELOG.md +0 -0
- data/CONTRIBUTING.md +57 -0
- data/Gemfile +33 -0
- data/LICENSE +26 -0
- data/LICENSE.md +26 -0
- data/README.md +245 -0
- data/Rakefile +43 -0
- data/app/controllers/spree/graphql_controller.rb +49 -0
- data/bin/console +17 -0
- data/bin/rails +9 -0
- data/bin/rails-engine +16 -0
- data/bin/rails-sandbox +18 -0
- data/bin/rake +8 -0
- data/bin/sandbox +84 -0
- data/bin/setup +8 -0
- data/config/locales/en.yml +6 -0
- data/config/routes.rb +5 -0
- data/lib/generators/solidus_graphql_api/install/install_generator.rb +8 -0
- data/lib/solidus_graphql_api.rb +11 -0
- data/lib/solidus_graphql_api/batch_loader.rb +114 -0
- data/lib/solidus_graphql_api/batch_loader/belongs_to.rb +30 -0
- data/lib/solidus_graphql_api/batch_loader/has_many.rb +24 -0
- data/lib/solidus_graphql_api/batch_loader/has_many_through.rb +42 -0
- data/lib/solidus_graphql_api/batch_loader/has_one.rb +22 -0
- data/lib/solidus_graphql_api/configuration.rb +19 -0
- data/lib/solidus_graphql_api/context.rb +76 -0
- data/lib/solidus_graphql_api/engine.rb +25 -0
- data/lib/solidus_graphql_api/factories.rb +11 -0
- data/lib/solidus_graphql_api/factories/address_factory.rb +8 -0
- data/lib/solidus_graphql_api/factories/country_factory.rb +12 -0
- data/lib/solidus_graphql_api/factories/store_factory.rb +16 -0
- data/lib/solidus_graphql_api/factories/taxonomy_factory.rb +26 -0
- data/lib/solidus_graphql_api/mutations/.keep +0 -0
- data/lib/solidus_graphql_api/mutations/base_mutation.rb +45 -0
- data/lib/solidus_graphql_api/mutations/checkout/add_addresses_to_checkout.rb +41 -0
- data/lib/solidus_graphql_api/mutations/checkout/add_payment_to_checkout.rb +45 -0
- data/lib/solidus_graphql_api/mutations/checkout/add_to_cart.rb +30 -0
- data/lib/solidus_graphql_api/mutations/checkout/advance_checkout.rb +27 -0
- data/lib/solidus_graphql_api/mutations/checkout/apply_coupon_code.rb +32 -0
- data/lib/solidus_graphql_api/mutations/checkout/complete_checkout.rb +31 -0
- data/lib/solidus_graphql_api/mutations/checkout/create_order.rb +27 -0
- data/lib/solidus_graphql_api/mutations/checkout/empty_cart.rb +29 -0
- data/lib/solidus_graphql_api/mutations/checkout/next_checkout_state.rb +27 -0
- data/lib/solidus_graphql_api/mutations/checkout/remove_from_cart.rb +33 -0
- data/lib/solidus_graphql_api/mutations/checkout/select_shipping_rate.rb +40 -0
- data/lib/solidus_graphql_api/mutations/checkout/set_order_email.rb +29 -0
- data/lib/solidus_graphql_api/mutations/checkout/update_cart_quantity.rb +41 -0
- data/lib/solidus_graphql_api/mutations/user/mark_default_address.rb +31 -0
- data/lib/solidus_graphql_api/mutations/user/remove_from_address_book.rb +25 -0
- data/lib/solidus_graphql_api/mutations/user/save_in_address_book.rb +30 -0
- data/lib/solidus_graphql_api/queries/address/country_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/address/state_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/completed_orders_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/countries_query.rb +11 -0
- data/lib/solidus_graphql_api/queries/country/states_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/line_item/variant_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/option_type/option_values_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/adjustments_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/billing_address_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/line_items_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/payments_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/shipments_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/shipping_address_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/master_variant_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/option_types_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/product_properties_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/variants_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product_by_slug_query.rb +11 -0
- data/lib/solidus_graphql_api/queries/product_property/property_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/products_query.rb +29 -0
- data/lib/solidus_graphql_api/queries/shipment/shipping_rates_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxon/children_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxon/parent_taxon_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxonomies_query.rb +11 -0
- data/lib/solidus_graphql_api/queries/taxonomy/root_taxon_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxonomy/taxons_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/default_price_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/images_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/option_values_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/prices_query.rb +19 -0
- data/lib/solidus_graphql_api/schema.rb +40 -0
- data/lib/solidus_graphql_api/types/.keep +0 -0
- data/lib/solidus_graphql_api/types/address.rb +32 -0
- data/lib/solidus_graphql_api/types/base/argument.rb +10 -0
- data/lib/solidus_graphql_api/types/base/enum.rb +10 -0
- data/lib/solidus_graphql_api/types/base/field.rb +13 -0
- data/lib/solidus_graphql_api/types/base/input_object.rb +10 -0
- data/lib/solidus_graphql_api/types/base/interface.rb +11 -0
- data/lib/solidus_graphql_api/types/base/object.rb +25 -0
- data/lib/solidus_graphql_api/types/base/relay_node.rb +13 -0
- data/lib/solidus_graphql_api/types/base/scalar.rb +10 -0
- data/lib/solidus_graphql_api/types/base/union.rb +10 -0
- data/lib/solidus_graphql_api/types/country.rb +23 -0
- data/lib/solidus_graphql_api/types/credit_card.rb +18 -0
- data/lib/solidus_graphql_api/types/currency.rb +14 -0
- data/lib/solidus_graphql_api/types/image.rb +27 -0
- data/lib/solidus_graphql_api/types/input_objects/address_input.rb +24 -0
- data/lib/solidus_graphql_api/types/input_objects/products_query_input.rb +15 -0
- data/lib/solidus_graphql_api/types/interfaces/adjustment.rb +32 -0
- data/lib/solidus_graphql_api/types/interfaces/payment_source.rb +19 -0
- data/lib/solidus_graphql_api/types/json.rb +63 -0
- data/lib/solidus_graphql_api/types/line_item.rb +26 -0
- data/lib/solidus_graphql_api/types/manifest_item.rb +12 -0
- data/lib/solidus_graphql_api/types/mutation.rb +24 -0
- data/lib/solidus_graphql_api/types/option_type.rb +22 -0
- data/lib/solidus_graphql_api/types/option_value.rb +15 -0
- data/lib/solidus_graphql_api/types/order.rb +63 -0
- data/lib/solidus_graphql_api/types/payment.rb +15 -0
- data/lib/solidus_graphql_api/types/payment_method.rb +15 -0
- data/lib/solidus_graphql_api/types/price.rb +21 -0
- data/lib/solidus_graphql_api/types/product.rb +38 -0
- data/lib/solidus_graphql_api/types/product_property.rb +19 -0
- data/lib/solidus_graphql_api/types/promotion_adjustment.rb +17 -0
- data/lib/solidus_graphql_api/types/property.rb +14 -0
- data/lib/solidus_graphql_api/types/query.rb +84 -0
- data/lib/solidus_graphql_api/types/shipment.rb +23 -0
- data/lib/solidus_graphql_api/types/shipping_rate.rb +15 -0
- data/lib/solidus_graphql_api/types/state.rb +14 -0
- data/lib/solidus_graphql_api/types/store.rb +27 -0
- data/lib/solidus_graphql_api/types/tax_adjustment.rb +11 -0
- data/lib/solidus_graphql_api/types/taxon.rb +33 -0
- data/lib/solidus_graphql_api/types/taxonomy.rb +23 -0
- data/lib/solidus_graphql_api/types/user.rb +23 -0
- data/lib/solidus_graphql_api/types/user_error.rb +12 -0
- data/lib/solidus_graphql_api/types/variant.rb +39 -0
- data/lib/solidus_graphql_api/types/wallet_payment_source.rb +14 -0
- data/lib/solidus_graphql_api/version.rb +5 -0
- data/schema.graphql +2070 -0
- data/solidus_graphql_api.gemspec +43 -0
- data/spec/integration/mutations/add_to_cart_spec.rb +67 -0
- data/spec/integration/mutations/checkout/add_addresses_to_checkout_spec.rb +115 -0
- data/spec/integration/mutations/checkout/add_payment_to_checkout_spec.rb +87 -0
- data/spec/integration/mutations/checkout/advance_checkout_spec.rb +71 -0
- data/spec/integration/mutations/checkout/apply_coupon_code_spec.rb +76 -0
- data/spec/integration/mutations/checkout/complete_checkout_spec.rb +56 -0
- data/spec/integration/mutations/checkout/next_checkout_state_spec.rb +69 -0
- data/spec/integration/mutations/checkout/select_shipping_rate_spec.rb +89 -0
- data/spec/integration/mutations/create_order_spec.rb +55 -0
- data/spec/integration/mutations/empty_cart_spec.rb +58 -0
- data/spec/integration/mutations/mark_default_address_spec.rb +33 -0
- data/spec/integration/mutations/remove_from_address_book_spec.rb +48 -0
- data/spec/integration/mutations/remove_from_cart_spec.rb +65 -0
- data/spec/integration/mutations/save_in_address_book_spec.rb +90 -0
- data/spec/integration/mutations/set_order_email_spec.rb +61 -0
- data/spec/integration/mutations/update_cart_quantity_spec.rb +68 -0
- data/spec/integration/queries/completed_orders_spec.rb +158 -0
- data/spec/integration/queries/countries_spec.rb +18 -0
- data/spec/integration/queries/current_order_spec.rb +15 -0
- data/spec/integration/queries/current_store_spec.rb +15 -0
- data/spec/integration/queries/current_user_spec.rb +43 -0
- data/spec/integration/queries/product_by_slug_spec.rb +42 -0
- data/spec/integration/queries/products_spec.rb +40 -0
- data/spec/integration/queries/taxonomies_spec.rb +22 -0
- data/spec/lib/solidus_graphql_api/batch_loader/belongs_to_spec.rb +67 -0
- data/spec/lib/solidus_graphql_api/batch_loader/has_many_spec.rb +38 -0
- data/spec/lib/solidus_graphql_api/batch_loader/has_many_through_spec.rb +47 -0
- data/spec/lib/solidus_graphql_api/batch_loader/has_one_spec.rb +38 -0
- data/spec/lib/solidus_graphql_api/context_spec.rb +236 -0
- data/spec/lib/solidus_graphql_api/queries/address/country_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/queries/address/state_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/queries/completed_orders_query_spec.rb +12 -0
- data/spec/lib/solidus_graphql_api/queries/countries_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/country/states_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/line_item/variant_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/option_type/option_values_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/order/adjustments_query_spec.rb +10 -0
- data/spec/lib/solidus_graphql_api/queries/order/billing_address_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/order/line_items_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/order/payments_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/order/shipments_query_spec.rb +18 -0
- data/spec/lib/solidus_graphql_api/queries/order/shipping_address_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/master_variant_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/product_properties_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/variants_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product_by_slug_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/queries/product_property/property_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/products_query_spec.rb +49 -0
- data/spec/lib/solidus_graphql_api/queries/shipment/shipping_rates_query_spec.rb +18 -0
- data/spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/taxon/parent_taxon_query_spec.rb +10 -0
- data/spec/lib/solidus_graphql_api/queries/taxonomies_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/taxonomy/root_taxon_query_spec.rb +10 -0
- data/spec/lib/solidus_graphql_api/queries/taxonomy/taxons_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/variant/default_price_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/variant/images_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/variant/option_values_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/variant/prices_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/schema_spec.rb +80 -0
- data/spec/lib/solidus_graphql_api/types/base/object_spec.rb +29 -0
- data/spec/lib/solidus_graphql_api/types/json_spec.rb +115 -0
- data/spec/lib/solidus_graphql_api/types/option_type_spec.rb +7 -0
- data/spec/lib/solidus_graphql_api/types/product_property_spec.rb +22 -0
- data/spec/lib/solidus_graphql_api/types/product_spec.rb +56 -0
- data/spec/lib/solidus_graphql_api/types/query_spec.rb +33 -0
- data/spec/lib/solidus_graphql_api/types/variant_spec.rb +58 -0
- data/spec/requests/spree/graphql_controller_spec.rb +17 -0
- data/spec/spec_helper.rb +62 -0
- data/spec/support/expected_schema.graphql +2070 -0
- data/spec/support/graphql/mutations/add_addresses_to_checkout.gql +19 -0
- data/spec/support/graphql/mutations/add_payment_to_checkout.gql +13 -0
- data/spec/support/graphql/mutations/add_to_cart.gql +21 -0
- data/spec/support/graphql/mutations/advance_checkout.gql +13 -0
- data/spec/support/graphql/mutations/apply_coupon_code.gql +13 -0
- data/spec/support/graphql/mutations/complete_checkout.gql +13 -0
- data/spec/support/graphql/mutations/create_order.gql +11 -0
- data/spec/support/graphql/mutations/empty_cart.gql +17 -0
- data/spec/support/graphql/mutations/mark_default_address.gql +9 -0
- data/spec/support/graphql/mutations/next_checkout_state.gql +13 -0
- data/spec/support/graphql/mutations/remove_from_address_book.gql +14 -0
- data/spec/support/graphql/mutations/remove_from_cart.gql +17 -0
- data/spec/support/graphql/mutations/save_in_address_book.gql +57 -0
- data/spec/support/graphql/mutations/select_shipping_rate.gql +23 -0
- data/spec/support/graphql/mutations/set_order_email.gql +13 -0
- data/spec/support/graphql/mutations/update_cart_quantity.gql +18 -0
- data/spec/support/graphql/queries/completed_orders.gql +29 -0
- data/spec/support/graphql/queries/completed_orders/adjustments.gql +24 -0
- data/spec/support/graphql/queries/completed_orders/available_payment_methods.gql +15 -0
- data/spec/support/graphql/queries/completed_orders/billing_address.gql +40 -0
- data/spec/support/graphql/queries/completed_orders/line_items.gql +23 -0
- data/spec/support/graphql/queries/completed_orders/payments.gql +23 -0
- data/spec/support/graphql/queries/completed_orders/shipping_address.gql +40 -0
- data/spec/support/graphql/queries/countries.gql +24 -0
- data/spec/support/graphql/queries/current_order.gql +32 -0
- data/spec/support/graphql/queries/current_store.gql +24 -0
- data/spec/support/graphql/queries/current_user.gql +197 -0
- data/spec/support/graphql/queries/product_by_slug.gql +106 -0
- data/spec/support/graphql/queries/products.gql +7 -0
- data/spec/support/graphql/queries/taxonomies.gql +81 -0
- data/spec/support/graphql/responses/completed_orders.json.erb +58 -0
- data/spec/support/graphql/responses/completed_orders/adjustments.json.erb +34 -0
- data/spec/support/graphql/responses/completed_orders/available_payment_methods.json.erb +29 -0
- data/spec/support/graphql/responses/completed_orders/billing_address.json.erb +78 -0
- data/spec/support/graphql/responses/completed_orders/line_items.json.erb +43 -0
- data/spec/support/graphql/responses/completed_orders/payments.json.erb +27 -0
- data/spec/support/graphql/responses/completed_orders/shipping_address.json.erb +78 -0
- data/spec/support/graphql/responses/countries.json.erb +51 -0
- data/spec/support/graphql/responses/current_order.json.erb +36 -0
- data/spec/support/graphql/responses/current_store.json.erb +34 -0
- data/spec/support/graphql/responses/current_user.json.erb +232 -0
- data/spec/support/graphql/responses/product_by_slug.json.erb +123 -0
- data/spec/support/graphql/responses/taxonomies.json.erb +145 -0
- data/spec/support/helpers/graphql.rb +43 -0
- data/spec/support/matchers/graphql.rb +35 -0
- data/spec/support/shared_contexts/graphql_query_subject.rb +21 -0
- metadata +572 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
query {
|
2
|
+
completedOrders {
|
3
|
+
nodes {
|
4
|
+
id
|
5
|
+
shippingAddress {
|
6
|
+
id
|
7
|
+
address1
|
8
|
+
address2
|
9
|
+
alternativePhone
|
10
|
+
city
|
11
|
+
company
|
12
|
+
country {
|
13
|
+
id
|
14
|
+
createdAt
|
15
|
+
iso
|
16
|
+
iso3
|
17
|
+
isoName
|
18
|
+
name
|
19
|
+
numcode
|
20
|
+
updatedAt
|
21
|
+
}
|
22
|
+
id
|
23
|
+
createdAt
|
24
|
+
firstname
|
25
|
+
lastname
|
26
|
+
phone
|
27
|
+
state {
|
28
|
+
id
|
29
|
+
abbr
|
30
|
+
name
|
31
|
+
createdAt
|
32
|
+
updatedAt
|
33
|
+
}
|
34
|
+
stateName
|
35
|
+
updatedAt
|
36
|
+
zipcode
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
query {
|
2
|
+
currentOrder {
|
3
|
+
id
|
4
|
+
number
|
5
|
+
shipments {
|
6
|
+
nodes {
|
7
|
+
createdAt
|
8
|
+
number
|
9
|
+
shippedAt
|
10
|
+
shippingRates {
|
11
|
+
nodes {
|
12
|
+
cost
|
13
|
+
createdAt
|
14
|
+
currency
|
15
|
+
selected
|
16
|
+
updatedAt
|
17
|
+
}
|
18
|
+
}
|
19
|
+
manifest {
|
20
|
+
variant {
|
21
|
+
sku
|
22
|
+
}
|
23
|
+
quantity
|
24
|
+
}
|
25
|
+
state
|
26
|
+
tracking
|
27
|
+
trackingUrl
|
28
|
+
updatedAt
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
query {
|
2
|
+
currentStore {
|
3
|
+
cartTaxCountryIso
|
4
|
+
code
|
5
|
+
createdAt
|
6
|
+
currencies {
|
7
|
+
nodes {
|
8
|
+
htmlEntity
|
9
|
+
isoCode
|
10
|
+
name
|
11
|
+
symbol
|
12
|
+
}
|
13
|
+
}
|
14
|
+
default
|
15
|
+
defaultCurrency
|
16
|
+
mailFromAddress
|
17
|
+
metaDescription
|
18
|
+
metaKeywords
|
19
|
+
name
|
20
|
+
seoTitle
|
21
|
+
updatedAt
|
22
|
+
url
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,197 @@
|
|
1
|
+
query {
|
2
|
+
currentUser {
|
3
|
+
addresses {
|
4
|
+
nodes {
|
5
|
+
address1
|
6
|
+
address2
|
7
|
+
alternativePhone
|
8
|
+
city
|
9
|
+
company
|
10
|
+
country {
|
11
|
+
isoName
|
12
|
+
iso
|
13
|
+
iso3
|
14
|
+
name
|
15
|
+
numcode
|
16
|
+
statesRequired
|
17
|
+
createdAt
|
18
|
+
updatedAt
|
19
|
+
}
|
20
|
+
createdAt
|
21
|
+
firstname
|
22
|
+
id
|
23
|
+
lastname
|
24
|
+
phone
|
25
|
+
state {
|
26
|
+
name
|
27
|
+
abbr
|
28
|
+
createdAt
|
29
|
+
updatedAt
|
30
|
+
}
|
31
|
+
stateName
|
32
|
+
updatedAt
|
33
|
+
zipcode
|
34
|
+
}
|
35
|
+
}
|
36
|
+
billAddress {
|
37
|
+
address1
|
38
|
+
address2
|
39
|
+
alternativePhone
|
40
|
+
city
|
41
|
+
company
|
42
|
+
country {
|
43
|
+
isoName
|
44
|
+
iso
|
45
|
+
iso3
|
46
|
+
name
|
47
|
+
numcode
|
48
|
+
statesRequired
|
49
|
+
createdAt
|
50
|
+
updatedAt
|
51
|
+
}
|
52
|
+
createdAt
|
53
|
+
firstname
|
54
|
+
id
|
55
|
+
lastname
|
56
|
+
phone
|
57
|
+
state {
|
58
|
+
name
|
59
|
+
abbr
|
60
|
+
createdAt
|
61
|
+
updatedAt
|
62
|
+
}
|
63
|
+
stateName
|
64
|
+
updatedAt
|
65
|
+
zipcode
|
66
|
+
}
|
67
|
+
createdAt
|
68
|
+
currentSignInAt
|
69
|
+
defaultAddress {
|
70
|
+
address1
|
71
|
+
address2
|
72
|
+
alternativePhone
|
73
|
+
city
|
74
|
+
company
|
75
|
+
country {
|
76
|
+
isoName
|
77
|
+
iso
|
78
|
+
iso3
|
79
|
+
name
|
80
|
+
numcode
|
81
|
+
statesRequired
|
82
|
+
createdAt
|
83
|
+
updatedAt
|
84
|
+
}
|
85
|
+
createdAt
|
86
|
+
firstname
|
87
|
+
id
|
88
|
+
lastname
|
89
|
+
phone
|
90
|
+
state {
|
91
|
+
name
|
92
|
+
abbr
|
93
|
+
createdAt
|
94
|
+
updatedAt
|
95
|
+
}
|
96
|
+
stateName
|
97
|
+
updatedAt
|
98
|
+
zipcode
|
99
|
+
}
|
100
|
+
email
|
101
|
+
id
|
102
|
+
lastSignInAt
|
103
|
+
login
|
104
|
+
shipAddress{
|
105
|
+
address1
|
106
|
+
address2
|
107
|
+
alternativePhone
|
108
|
+
city
|
109
|
+
company
|
110
|
+
country {
|
111
|
+
isoName
|
112
|
+
iso
|
113
|
+
iso3
|
114
|
+
name
|
115
|
+
numcode
|
116
|
+
statesRequired
|
117
|
+
createdAt
|
118
|
+
updatedAt
|
119
|
+
}
|
120
|
+
createdAt
|
121
|
+
firstname
|
122
|
+
id
|
123
|
+
lastname
|
124
|
+
phone
|
125
|
+
state {
|
126
|
+
name
|
127
|
+
abbr
|
128
|
+
createdAt
|
129
|
+
updatedAt
|
130
|
+
}
|
131
|
+
stateName
|
132
|
+
updatedAt
|
133
|
+
zipcode
|
134
|
+
}
|
135
|
+
signInCount
|
136
|
+
spreeApiKey
|
137
|
+
updatedAt
|
138
|
+
wallet {
|
139
|
+
nodes {
|
140
|
+
createdAt
|
141
|
+
default
|
142
|
+
id
|
143
|
+
paymentSource {
|
144
|
+
... on CreditCard {
|
145
|
+
address {
|
146
|
+
address1
|
147
|
+
address2
|
148
|
+
alternativePhone
|
149
|
+
city
|
150
|
+
company
|
151
|
+
country {
|
152
|
+
isoName
|
153
|
+
iso
|
154
|
+
iso3
|
155
|
+
name
|
156
|
+
numcode
|
157
|
+
statesRequired
|
158
|
+
createdAt
|
159
|
+
updatedAt
|
160
|
+
}
|
161
|
+
createdAt
|
162
|
+
firstname
|
163
|
+
id
|
164
|
+
lastname
|
165
|
+
phone
|
166
|
+
state {
|
167
|
+
name
|
168
|
+
abbr
|
169
|
+
createdAt
|
170
|
+
updatedAt
|
171
|
+
}
|
172
|
+
stateName
|
173
|
+
updatedAt
|
174
|
+
zipcode
|
175
|
+
}
|
176
|
+
ccType
|
177
|
+
lastDigits
|
178
|
+
month
|
179
|
+
name
|
180
|
+
year
|
181
|
+
}
|
182
|
+
createdAt
|
183
|
+
updatedAt
|
184
|
+
paymentMethod {
|
185
|
+
createdAt
|
186
|
+
description
|
187
|
+
id
|
188
|
+
name
|
189
|
+
position
|
190
|
+
updatedAt
|
191
|
+
}
|
192
|
+
}
|
193
|
+
updatedAt
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
query ($slug: String!) {
|
2
|
+
productBySlug(slug: $slug) {
|
3
|
+
createdAt
|
4
|
+
description
|
5
|
+
id
|
6
|
+
masterVariant {
|
7
|
+
createdAt
|
8
|
+
defaultPrice {
|
9
|
+
amount
|
10
|
+
countryIso
|
11
|
+
createdAt
|
12
|
+
currency {
|
13
|
+
htmlEntity
|
14
|
+
isoCode
|
15
|
+
name
|
16
|
+
symbol
|
17
|
+
}
|
18
|
+
displayAmount
|
19
|
+
displayCountry
|
20
|
+
id
|
21
|
+
updatedAt
|
22
|
+
}
|
23
|
+
depth
|
24
|
+
height
|
25
|
+
id
|
26
|
+
isMaster
|
27
|
+
optionValues {
|
28
|
+
nodes {
|
29
|
+
createdAt
|
30
|
+
id
|
31
|
+
name
|
32
|
+
position
|
33
|
+
presentation
|
34
|
+
updatedAt
|
35
|
+
}
|
36
|
+
}
|
37
|
+
position
|
38
|
+
prices {
|
39
|
+
nodes {
|
40
|
+
amount
|
41
|
+
countryIso
|
42
|
+
createdAt
|
43
|
+
currency {
|
44
|
+
htmlEntity
|
45
|
+
isoCode
|
46
|
+
name
|
47
|
+
symbol
|
48
|
+
}
|
49
|
+
displayAmount
|
50
|
+
displayCountry
|
51
|
+
id
|
52
|
+
updatedAt
|
53
|
+
}
|
54
|
+
}
|
55
|
+
sku
|
56
|
+
updatedAt
|
57
|
+
weight
|
58
|
+
width
|
59
|
+
}
|
60
|
+
metaDescription
|
61
|
+
metaKeywords
|
62
|
+
metaTitle
|
63
|
+
name
|
64
|
+
optionTypes {
|
65
|
+
nodes {
|
66
|
+
createdAt
|
67
|
+
id
|
68
|
+
name
|
69
|
+
optionValues {
|
70
|
+
nodes {
|
71
|
+
createdAt
|
72
|
+
id
|
73
|
+
name
|
74
|
+
position
|
75
|
+
presentation
|
76
|
+
updatedAt
|
77
|
+
}
|
78
|
+
}
|
79
|
+
position
|
80
|
+
presentation
|
81
|
+
updatedAt
|
82
|
+
}
|
83
|
+
}
|
84
|
+
productProperties {
|
85
|
+
nodes {
|
86
|
+
createdAt
|
87
|
+
position
|
88
|
+
property {
|
89
|
+
createdAt
|
90
|
+
name
|
91
|
+
presentation
|
92
|
+
updatedAt
|
93
|
+
}
|
94
|
+
updatedAt
|
95
|
+
value
|
96
|
+
}
|
97
|
+
}
|
98
|
+
slug
|
99
|
+
updatedAt
|
100
|
+
variants {
|
101
|
+
nodes {
|
102
|
+
id
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|