Branch: client
According to video, you should use deconstruct for useQuery (const [data, loading, error] = useQuery(ALL_PETS)) but you get undefined on useQuery hook when you do that. If you use something like const pets = useQuery and then pets.loading, pets.data, pets.error it's works.
Branch: client According to video, you should use deconstruct for useQuery (const [data, loading, error] = useQuery(ALL_PETS)) but you get undefined on useQuery hook when you do that. If you use something like const pets = useQuery and then pets.loading, pets.data, pets.error it's works.