title: How to send UUID string back as UUID param? ApolloGraphql - Hasura - Postgres
body: <p>I'm trying to send the groupId value I'm getting as a string from Hasura/Apollo without any modifications as a uuid parameter for a mutation in order to basically create a relation.</p>
  <p>The table has groupID defined as uuid!, but I can't seem to send a valid UUID back.</p>
  <p>UPDATE: the data is saved in the database but I am still getting the error.</p>
  <p>The error I'm getting is:</p>
  <pre><code>TypeError [ERR_INVALID_ARG_TYPE]: The &quot;string&quot; argument must be of type string or an instance of Buffer or ArrayBuffer. Received an instance of Object
  </code></pre>
  <p>Query:</p>
  <pre><code>export const ADD_GROUP_MEMBER_MUTATION = gql`
    mutation addGroupMember(
      $personId: String!
      $groupId: uuid!
      $groupLocationId: uuid
    ) {
      insert_GroupMembers_one(
        object: {
          personId: $personId
          groupLocationId: $groupLocationId
          groupId: $groupId
        }
      ) {
        id
        groupId
        groupLocationId
        personId
      }
    }
  `;
  </code></pre>
  <p>Sending params:</p>
  <pre><code>const { data, errors } = await client.mutate&lt;
      addGroupMember,
      addGroupMemberVariables
    &gt;({
      mutation: ADD_GROUP_MEMBER_MUTATION,
      variables: {
        groupId: groupId as string,
        personId,
      },
    });
  </code></pre>