Skip to content
Last updated

graphql

Products:RedocRedocRealmRealm
Plans:ProEnterpriseEnterprise+

Customize the behavior and appearance of integrated GraphQL documentation. Requires a GraphQL schema.

Options

OptionTypeDescription
menuobjectMenu options.
infoInfo objectAPI metadata including title, description, contact, and license information for the overview page.
samplesMaxInlineArgsnumberMaximum number of inline arguments for samples.
jsonSamplesDepthnumberSets the default expand level for JSON payload samples.
fieldExpandLevelnumberMaximum depth of the Return type in the middle panel.
feedbackFeedback objectHide or customize the type of or text included in the feedback form that displays at the end of each endpoint.
showBuiltInScalarsbooleanShow GraphQL built-in scalar types in the navigation and pages.
showBuiltInDirectivesbooleanShow GraphQL built-in directives in the navigation and pages.
excludeFromSearchbooleanExcludes a GraphQL schema from search results and llms.txt when set to true. Default: false.

Examples

To exclude a specific GraphQL API from the search results, locate the API in redocly.yaml. Under the graphql key, set the excludeFromSearch option to true.

redocly.yaml
apis:
  library@default:
    root: 'graphql/schema.graphql'
    graphql:
      excludeFromSearch: true

To exclude all GraphQL APIs from the search results, under the graphql key, set the excludeFromSearch option to true.

redocly.yaml
graphql:
  excludeFromSearch: true

Resources