title: Return whole object by passing only _id Nest.js, Graphql, MongoDB
body: <p>I am creating a backend for an e-commerce store. I would like to add an order, which I have to specify order status. In creating the order process and I had to specified, not only orderStatus ID, but all fields defined in InputArgs. So the question is: by passing only ID in args, return the whole object.</p>
  <p>Mutation:</p>
  <pre><code>    mutation {
    createOrder(
      orderData: {
        orderStatus: { _id: &quot;61c9c5865916b13d2fd1f756&quot; }
      }
    ) {
      orderStatus {
        _id
      }
    }
  }
  </code></pre>
  <p>Result:</p>
  <pre><code>{
    &quot;data&quot;: {
      &quot;createOrder&quot;: {
        &quot;orderStatus&quot;: {
          &quot;_id&quot;: &quot;61c9c5865916b13d2fd1f756&quot;
        }
      }
    }
  }
  </code></pre>
  <p>Wanted mutation:
  Mutation:</p>
  <pre><code>    mutation {
    createOrder(
      orderData: {
        orderStatus: { _id: &quot;61c9c5865916b13d2fd1f756&quot; }
      }
    ) {
      orderStatus {
        _id,
  orderStatusName
      }
    }
  }
  </code></pre>
  <p>Result:</p>
  <pre><code>{
    &quot;data&quot;: {
      &quot;createOrder&quot;: {
        &quot;orderStatus&quot;: {
          &quot;_id&quot;: &quot;61c9c5865916b13d2fd1f756&quot;,
  &quot;orderStatusName&quot;: &quot;PROCESSING&quot;
        }
      }
    }
  }
  </code></pre>
  <p>I hope that you understand. In case of any ambiguities feel free to comment. Thanks in advance!</p>