0
votes

When I follow the ApolloGraphQL docs here:

https://www.apollographql.com/docs/apollo-server/performance/apq/#setup

It says that the Apollo Server automatically handles AQP requests with no changes. Yet, when my client calls:

http://localhost:4000/graphql

I get a 404 file not found.

Shouldn't that automatically be working on an apollo graphql server?

1

1 Answers

0
votes

I didn't realize for localhost testing I need to set full uri

const link = ApolloLink.from([
  createPersistedQueryLink({ useGETForHashedQueries: true }),
  createHttpLink({ uri: "http://localhost:4000/graphql" })
]);