title: How to pass cookie from apollo-server to apollo-clenet
body: <p><strong>Mutation</strong></p>
  
  <pre><code>Mutation: {
    signUp: (_, { res }) =&gt; {
      try {
        res.cookie("jwt", "token", {
          httpOnly: true
        });
        return "Amasia";
      } catch (error) {
        return "error";
      }
    };
  }
  </code></pre>
  
  <p><strong>Apollo-clenet-react</strong></p>
  
  <pre><code>const [addTodo, { loading, error, data }] = useMutation(gql);
  
    const [formSignUp, setFormSignUp] = useState({
      lastName: '',
      firstName: '',
      password: '',
      email: '',
    });
  
    const change = e =&gt; {
      const { value, name } = e.target;
      setFormSignUp({ ...formSignUp, [name]: value });
    };
  </code></pre>
  
  <p>When i make a request from react.
  Here is the answer I get from the server.</p>
  
  <p>1)<strong>Data</strong>  <code>{"data": {"signUp": "Amasia"}}</code></p>
  
  <p>2) <strong>Network</strong><a href="https://i.stack.imgur.com/T2Gzf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/T2Gzf.png" alt="enter image description here"></a></p>
  
  <p><strong>Application</strong></p>
  
  <p>Well when I look in Application Cookies, it is empty.
  <a href="https://i.stack.imgur.com/T9zem.png" rel="noreferrer"><img src="https://i.stack.imgur.com/T9zem.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong Why are cookies empty?</p>