Closed Skeen closed 1 week ago
This pull request fixes a missing return annotation in the documentation example for the get_customer
method. The change addresses an error that users would encounter when trying to run the example as-is from the documentation.
Change | Details | Files |
---|---|---|
Added missing return annotation to the get_customer method example |
|
docs/types/schema.md |
Description
The example under: "Defining extra types when using Interfaces" on https://strawberry.rocks/docs/types/schema contains an example, which does not run.
Using the documentation as-is produces this error:
Types of Changes
Issues Fixed or Closed by This PR
*
Checklist
Summary by Sourcery
Correct the return annotation in the 'get_customer' function example in the documentation to prevent runtime errors and improve clarity.
Documentation: