-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[DOCS] Added reference to Extend Config Data for the Store
GraphQl …
#4883
[DOCS] Added reference to Extend Config Data for the Store
GraphQl …
#4883
Conversation
An admin must run tests on this PR before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lewisvoncken
Thanks for your contribution.
Can you please update suggested changes.
b5bbe65
to
488e482
Compare
@ronak2ram I have just updated according to the suggested change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is some great information. I'd like to expand it a bit and create a new topic. It could have a title like "Extend a query or mutation with custom attributes" and be placed in the graphql/develop
directory. The topic could have the following contents:
- An introductory paragraph or two that describes the task.
- A section that describes the custom fields.
- A section about updating the
di.xml
file. - A section about the custom module's
schema.graphqls
file. - An example query containing the custom attribute and results.
3 & 4 are mostly done, and 5 would be easy. I don't know how much work it would take to describe what you had to do to create these custom fields.
As with any new topic contributed by the community, your company would get full credit for the topic.
Let me know whether you'd be willing to do this.
Meanwhile, I've also posted some editorial corrections.
Co-Authored-By: Kevin Harper <keharper@users.noreply.github.com>
Co-Authored-By: Kevin Harper <keharper@users.noreply.github.com>
Co-Authored-By: Kevin Harper <keharper@users.noreply.github.com>
Co-Authored-By: Kevin Harper <keharper@users.noreply.github.com>
@keharper The requested changes have been applied and I am willing to do this but in my opinion it should be separated from this pr so I will make a new one soon. |
@lewisvoncken One more small change. |
Co-Authored-By: Kevin Harper <keharper@users.noreply.github.com>
@keharper |
running tests |
Hi @lewisvoncken, thank you for your contribution! |
Thanks for your contribution, @lewisvoncken . |
…endpoint
Purpose of this pull request
This pull request (PR) adds a reference to add your own configuration to the
Store
GraphQl endpoint by using the extendConfigData array within the construct of theStoreConfigDataProvider
Added the following content:

Affected DevDocs pages
Links to Magento source code
Mage2gen example module
whatsnew
Described how to add custom store configuration attributes to the storeConfig query.