mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-22 06:38:13 +00:00
Add support for 'refresh' in @cached section of the query.
Example:
```
query MyProducts @cached(refresh: true) {
products {
id
name
}
}
```
This commit is contained in:
@@ -134,6 +134,9 @@ func parseGraphQLQuery(c *fiber.Ctx) (operationType, operationName string, cache
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if arg.Name.Value == "refresh" {
|
||||||
|
cacheRequest = arg.Value.GetValue().(bool)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user