You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a GraphQL query that is called in getServerSideProps. The query returns an error when called in getServerSideProps, but the same query works when calling it from the page component using useQuery hook.
Other queries are executed successfully when calling them inside of getStaticProps function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a GraphQL query that is called in
getServerSideProps
. The query returns an error when called ingetServerSideProps
, but the same query works when calling it from the page component usinguseQuery
hook.Other queries are executed successfully when calling them inside of
getStaticProps
function.This is code for the query
Error I get
Any help and ideas would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions