import { GraphQLFetchOptions } from ".." ; /**
 * Gets default [`fetch` options] GraphQLFetchOptions for a
 * [GraphQL operation] GraphQLOperation .
 *  param { GraphQLOperation } operation returns { GraphQLFetchOptions } ignore export function graphqlFetchOptions ( operation ) { const fetchOptions = { url : '/graphql' , method : 'POST' , credentials : "include" , headers : { Accept : 'application/json' , 'Content-Type' : 'application/json' } , } ; fetchOptions . body = JSON . stringify ( operation ) ; return fetchOptions ; }