Add support for 'refresh' in @cached section of the query.

Example:

```
query MyProducts @cached(refresh: true) {
  products {
    id
    name
  }
}
```
This commit is contained in:
2024-02-15 09:29:27 +00:00
parent 029e0166c0
commit 756c63c0d1
+3
View File
@@ -134,6 +134,9 @@ func parseGraphQLQuery(c *fiber.Ctx) (operationType, operationName string, cache
return
}
}
if arg.Name.Value == "refresh" {
cacheRequest = arg.Value.GetValue().(bool)
}
}
}
}