0

I've an Apollo fullstack application generated with GRANDstack template, and a i've added a query that is probably wrong!

I got this error: Response not successful: Received status code 400

So, i've tried to add errorPolicy: 'all to useQuery hook

useQuery(MY_QUERY, {errorPolicy: 'all', variables: {

but i still get a generic network error Response not successful: Received status code 400

what i don't know is where to act, on the apollo-server? on the apollo-client? elsewhere? i'm using the default configuration of GRANDStack

pinale
  • 2,060
  • 6
  • 38
  • 72
  • 1
    full **network** response? – xadm Dec 30 '20 at 10:30
  • You're right! i thought the detailed errors was in the message property of the error variable (destructured from the hook) . and in the network response there are the details of the error, without `errorPolicy: 'all'` as well. Stupid me! – pinale Dec 30 '20 at 11:42

0 Answers0