Skip to content

Commit

Permalink
move cache transformer at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
trecloux committed Feb 7, 2021
1 parent 5b1c7bd commit a5b84a3
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions graphql/.meshrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ sources:
baseUrl: http://localhost:8080
source: ./openapi.yaml
transforms:
- cache:
- field: Query.getBrandById
invalidate:
ttl: 3600
- field: Query.getManufacturerById
invalidate:
ttl: 3600
- field: Query.getCategoryById
invalidate:
ttl: 3600
- field: Query.getImageById
invalidate:
ttl: 3600
- prefix:
value: My
transforms:
- cache:
- field: Query.getBrandById
invalidate:
ttl: 3600
- field: Query.getManufacturerById
invalidate:
ttl: 3600
- field: Query.getCategoryById
invalidate:
ttl: 3600
- field: Query.getImageById
invalidate:
ttl: 3600
additionalTypeDefs: |
extend type MyProduct {
brand: MyBrand
Expand Down

0 comments on commit a5b84a3

Please sign in to comment.