### **User description**
This PR adds a new `features` section to the GraphQL proxy
configuration. It will allow the enable or disable specific features for
proxy-only mode.
## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Refactoring or add test (improvements in base code or adds test
coverage to functionality)
___
### **PR Type**
Enhancement
___
### **Description**
This PR introduces a new `features` section to the GraphQL proxy
configuration:
- Added `features` section to `GraphQLProxyConfig` in
`apidef/api_definitions.go`.
- Introduced `GraphQLProxyFeaturesConfig` struct with
`UseImmutableHeaders` field.
- Updated `DummyAPI` function to include default `features`
configuration.
- Updated GraphQL proxy schema in `apidef/schema.go` to include
`features` section with `use_immutable_headers` property.
___
### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>api_definitions.go</strong><dd><code>Add features
section to GraphQL proxy configuration.</code>
</dd></summary>
<hr>
apidef/api_definitions.go
<li>Added <code>features</code> section to
<code>GraphQLProxyConfig</code>.<br> <li> Introduced
<code>GraphQLProxyFeaturesConfig</code> struct with
<code>UseImmutableHeaders</code> <br>field.<br> <li> Updated
<code>DummyAPI</code> function to include default <code>features</code>
configuration.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6298/files#diff-9961ccc89a48d32db5b47ba3006315ef52f6e5007fb4b09f8c5d6d299c669d67">+10/-0</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>schema.go</strong><dd><code>Update GraphQL proxy schema
with features section.</code>
</dd></summary>
<hr>
apidef/schema.go
<li>Added <code>features</code> section to GraphQL proxy schema.<br>
<li> Included <code>use_immutable_headers</code> property in the
schema.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6298/files#diff-f8a37bb370eb6fe20063786a5e6ea3d85a5c91d8e289f0b3e045830c4d322095">+8/-0</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
___
> 💡 **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools
and their descriptions
User description
This PR adds a new
featuressection to the GraphQL proxy configuration. It will allow the enable or disable specific features for proxy-only mode.Types of changes
PR Type
Enhancement
Description
This PR introduces a new
featuressection to the GraphQL proxy configuration:featuressection toGraphQLProxyConfiginapidef/api_definitions.go.GraphQLProxyFeaturesConfigstruct withUseImmutableHeadersfield.DummyAPIfunction to include defaultfeaturesconfiguration.apidef/schema.goto includefeaturessection withuse_immutable_headersproperty.Changes walkthrough 📝
api_definitions.go
Add features section to GraphQL proxy configuration.apidef/api_definitions.go
featuressection toGraphQLProxyConfig.GraphQLProxyFeaturesConfigstruct withUseImmutableHeadersfield.
DummyAPIfunction to include defaultfeaturesconfiguration.schema.go
Update GraphQL proxy schema with features section.apidef/schema.go
featuressection to GraphQL proxy schema.use_immutable_headersproperty in the schema.