DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
GraphQL Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
GraphQL
A developer upgrades from Apollo Client 3 to 4 and their app fails with 'useQuery is not a function.' What's the most likely cause?
A
A completely unrelated bug
B
The v3-era flat import (`import { useQuery } from "@apollo/client"`) needs to change to import from `@apollo/client/react` instead
C
useQuery was renamed to something else entirely
D
The GraphQL query itself is malformed
Check Answer