From cf3076d70141c9097a405828e1b2ff0855a6c1f4 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sat, 8 Apr 2023 02:11:46 +0100 Subject: [PATCH] Update documentation. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 31f2454..3bffc74 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Ps. It's Hasura friendly. - [Features](#features) - [Usage example](#usage-example) - [Environment variables](#environment-variables) + - [Modifiers on the fly](#modifiers-on-the-fly) - [Cache](#cache) - [Example reader code](#example-reader-code) - [Tips](#tips) @@ -40,6 +41,11 @@ Therefore, I present you the simple client to which you can copy & paste your gr * `GRAPHQL_RETRIES_NUMBER` - Number of retries: Default: `1` * `GRAPHQL_RETRIES_DELAY` - Delay in retries in milliseconds. Default: `250` +### Modifiers on the fly + +* `gql.SetEndpoint('your-endpoint-url')` - modifies endpoint, without the need to set the environment variable +* `gql.SetOutput('byte')` - modifies output format, without the need to set the environment variable + ### Cache You have two options to enable the cache: