This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Remove this polyfill if you don't use SSR | |
| import fetch from "isomorphic-fetch" | |
| import {printAST, HTTPFetchNetworkInterface} from "apollo-client" | |
| import toFormData from "./toFormData" | |
| class FormDataHTTPFetchNetworkInterface extends HTTPFetchNetworkInterface { | |
| fetchFromRemoteEndpoint({request, options}) { | |
| // Transform variables obj to FormData |