useQuery returns undefined, But returns data on gql playground
问题 "@apollo/react-hooks": "^3.1.3", "apollo-client": "^2.6.8", Apollo client return undefined on react app but return the data on gql playground, I don't understand why don't it works on client-side but works on graphql playground. Schema I have defined union for user query for error handling. type Query { user(id: ID!): UserReturn! } union UserReturn = User | Error type User { id: ID! username: String! email: String profileUrl: String createdAt: Date ads: [Doc!]! } type Error { message: String