Schema Reference
INFO
This page assumes basic knowledge of schema configuration and versioning concepts. See Schema Overview for foundational information.
Introduction
Polen will derive reference documentation for your GraphQL Schema once you've supplied it. This guide documents everything you need to know about the reference feature.
Navigation
The reference documentation is always available through a "Reference" link in the navigation bar once you've supplied a schema. It's accessible through these URL patterns:
Routes
- Type overview:
/reference/{type}
- Field details:
/reference/{type}/{field}
Examples
# View the User type
/reference/User
# View the email field on the User type
/reference/User/email
# View the Query type
/reference/Query
Schema Augmentations
You can enhance your schema documentation without modifying the schema itself using schema augmentations. This allows you to add implementation details, usage examples, deprecation notices, and other context to your reference documentation.
Learn more: Schema Augmentations
Versioning
When you have multiple schema versions configured, Polen enables version-specific reference documentation. This allows you to view your GraphQL schema as it existed at any point in time.
For complete details on schema versioning including configuration and version formats, see Schema Overview.
Navigation
The basic URL structure shown earlier always displays the latest version. When you have multiple schema versions, you can access specific versions using an extended URL pattern:
- Type overview:
/reference/version/{version}/{type}
- Field details:
/reference/version/{version}/{type}/{field}
Where {version}
can be:
- A specific date:
2024-01-15
- The
latest
tag:latest
(convenience tag that always points to the most recent version)
Examples
# These are equivalent - both show the latest version
/reference/User
/reference/version/latest/User
# View the User type as it existed on January 15, 2024
/reference/version/2024-01-15/User
# View a specific field from that version
/reference/version/2024-01-15/User/email