Skip to content

Inject ApolloClient into generated query #5570

Answered by dnedrow
dnedrow asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out. In case anyone else runs into this, the syntax is actually pretty simple:

  const customerInfoQuery = useGet_Customer_InfoQuery({
    client: your_client_instance_here,
    variables: {
      account_number: loginState.state.userInfo.accountNumber,
    },
  });

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dnedrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant