Query Individual Fields

Can someone please explain to me why the first query works, but the second does not and what I need to do to make it work? I’ve looked at 10+ examples that all show similar syntax for variable usage in queries like this, but I can’t figure out why I can’t get it to work. I can share my schema if necessary.

query getBenchmarkDatasetsFromMachineID1{
  UserMachineID{
    HardwareID
  }
}

query getBenchmarkDatasetsFromMachineID2($hardwareID: String = "{1}"){
  UserMachineID(HardwareID: $hardwareID){
    HardwareID
  }
}

Oh, and here’s the error I’m getting:

{
  "data": null,
  "errors": [
    {
      "message": "Unknown argument 'HardwareID' on field 'UserMachineID' of type 'Query'. (line 8, column 17):\n  UserMachineID(HardwareID: $hardwareID) {\n                ^",
      "locations": [
        {
          "line": 8,
          "column": 17
        }
      ]
    }
  ]
}

Got it figured out.

Had to add a new query to the schema that took “HardwareID” as a scalar type like so:
UserMachineIDbyHWID(HardwareID: String): UserMachineID