Skip to content

Commit

Permalink
Merge pull request #880 from pcardune/patch-1
Browse files Browse the repository at this point in the history
Fix example usage of RenameRootFields transform
  • Loading branch information
JakeDawkins committed Jul 14, 2018
2 parents d905abd + 02afaad commit d33ea90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/schema-stitching.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const transformedChirpSchema = transformSchema(chirpSchema, [
(operation: string, rootField: string) => rootField !== 'chirpsByAuthorId'
),
new RenameTypes((name: string) => `Chirp_${name}`),
new RenameRootFields((name: string) => `Chirp_${name}`),
new RenameRootFields((operation: 'Query' | 'Mutation' | 'Subscription', name: string) => `Chirp_${name}`),
]);
```

Expand Down

0 comments on commit d33ea90

Please sign in to comment.