Skip to content

Commit

Permalink
Improved Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Sep 17, 2024
1 parent ad1f05c commit 3a0df74
Showing 1 changed file with 41 additions and 5 deletions.
46 changes: 41 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,45 @@ This **Magento Module** will allow Rapidez to support more functionalities.

## Current functionality

Currently this module adds the ProductStockItem type to the ProductInterface in the graphql definition.
Allowing you to retrieve the in_stock, qty, min_sale_qty, max_sale_qty, qty_increments
### ProductStockItem
The ProductStockItem type is added to the ProductInterface in the GraphQL definition.
Allowing you to retrieve the stock information of the product:
```diff
product {
id,
sku,
name,
type_id,
url_key,
url_suffix,
+ stock_item {
+ max_sale_qty
+ min_sale_qty
+ qty_increments
+ in_stock
+ }
}
```

### Sales rule labels
The SalesRuleLabel type is added to the CartItemInterface in the GraphQL definition.
Allowing you to retrieve the sales rule labels that are applied to a quote item:
```diff
items {
id
quantity
+ sales_rule_labels {
+ name
+ description
+ store_label
+ discount_amount
+ from_date
+ to_date
+ }
}
```

### Other
And it extends Magento functionality in order to facilitate file upload product options via GraphQL

## Installation
Expand All @@ -21,12 +57,12 @@ bin/magento module:enable Rapidez_Compadre

Configuration options are available under `Stores > Configuration > Rapidez > Config`

Here you can configure what extra fields should be exposed in GraphQL, fields not exposed will be `null`.
Here you can configure what extra fields should be exposed in the GraphQL ProductStockItem, fields not exposed will be `null`.

## Release instructions

If GraphQl changes have been made src/etc/module.xml must be updated with the new release version number.
This way we can easily detect which fields should be available in GraphQl for use. As Introspection is disabled outside developer mode.
If GraphQL changes have been made src/etc/module.xml must be updated with the new release version number.
This way we can easily detect which fields should be available in GraphQL for use. As Introspection is disabled outside developer mode.

## License

Expand Down

0 comments on commit 3a0df74

Please sign in to comment.