Apollo client make GET request

I would like to use the apollo client to make a graphql request but as GET like:

this.apollo.query( {
query: TYPE_AHEAD,
variables: {

typeAhead(value: “lageris”) {


@mibto if you’re asking how to make GET requests with Apollo Client, when you setup your ApolloClient instance, pass in an a new HttpLink instance with the property useGETForQueries set to true. Something like:

import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client";

const link = new HttpLink({ 
  uri: '/graphql',
  useGETForQueries: true,

const client = new ApolloClient({
  cache: new InMemoryCache(),

@hwillson thanks! that is exactly what i was looking for.

1 Like