From 1efaaf1536ccee25c77093bac663a907c659b960 Mon Sep 17 00:00:00 2001 From: Alex Kondratiuk Date: Sat, 20 Apr 2024 13:54:29 +0200 Subject: [PATCH] chore: update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab29e6c..53e6d28 100644 --- a/README.md +++ b/README.md @@ -180,9 +180,9 @@ const client = new AwesomeGraphQLClient(config) ### `config` properties - `endpoint`: _string_ - The URL to your GraphQL endpoint (required) -- `fetch`: _Function_ - Fetch polyfill (necessary in NodeJS, see [example](#nodejs)) +- `fetch`: _Function_ - Fetch polyfill - `fetchOptions`: _object_ - Overrides for fetch options -- `FormData`: _object_ - FormData polyfill (necessary in NodeJS if you are using file upload, see [example](#nodejs)) +- `FormData`: _object_ - FormData polyfill - `formatQuery`: _function(query: any): string_ - Custom query formatter (see [example](#graphql-tag)) - `onError`: _function(error: GraphQLRequestError | Error): void_ - Provided callback will be called before throwing an error (see [example](#error-logging)) - `isFileUpload`: _function(value: unknown): boolean_ - Custom predicate function for checking if value is a file (see [example](#custom-isfileupload-predicate))