File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
app/code/Magento/ReviewGraphQl/etc Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
9
+ <type name =" Magento\StoreGraphQl\Model\Resolver\Store\StoreConfigDataProvider" >
10
+ <arguments >
11
+ <argument name =" extendedConfigData" xsi : type =" array" >
12
+ <item name =" product_reviews_enabled" xsi : type =" string" >catalog/review/active</item >
13
+ <item name =" allow_guests_to_write_product_reviews" xsi : type =" string" >catalog/review/allow_guest</item >
14
+ </argument >
15
+ </arguments >
16
+ </type >
17
+ </config >
Original file line number Diff line number Diff line change @@ -76,3 +76,8 @@ input ProductReviewRatingInput {
76
76
id : String ! @doc (description : " Base64 encoded rating ID." )
77
77
value_id : String ! @doc (description : " Base 64 encoded rating value id." )
78
78
}
79
+
80
+ type StoreConfig @doc (description : " The type contains information about a store config" ) {
81
+ product_reviews_enabled : String @doc (description : "Indicates whether product reviews are enabled. Possible values: 1 (Yes) and 0 (No)" )
82
+ allow_guests_to_write_product_reviews : String @doc (description : "Indicates whether guest users can write product reviews. Possible values: 1 (Yes) and 0 (No)" )
83
+ }
You can’t perform that action at this time.
0 commit comments