GraphQLError: Syntax Error: Expected Name, found <EOF>

GraphQLError: Syntax Error: Expected Name, found <EOF>

我在 graphql 查询中遇到了上述错误,顺便说一句,我正在使用 apollo-react 并使用查询组件来呈现数据

这是我的代码

const GET_VEHICLE_CHECKS = gql`
query getVehicleChecks($uuid: String!) {
  tripDetails(uuid: $uuid){
    departmentAssigned{
      vehicleChecks{
        conditions{
          id
          name
          standard
          valueType
          spinnerItems
        }
      }
    }
  }

`;

这就是我的实际查询的样子

{
  tripDetails(uuid: "c0e7233093b14afa96f39e2b70c047d8"){
    departmentAssigned{
      vehicleChecks{
        conditions{
          id
          name
          standard
          valueType
          spinnerItems
        }
      }
    }
    vehicleConditions{
      id
      condition{
        id
        standard
      }
      value
    }
  }
}

我尝试更改变量名,但没有用

您的查询末尾缺少右括号 }

const GET_VEHICLE_CHECKS = gql`
query getVehicleChecks($uuid: String!) {
  tripDetails(uuid: $uuid){
    departmentAssigned{
      vehicleChecks{
        conditions{
          id
          name
          standard
          valueType
          spinnerItems
        }
      }
    }
  }
} <- THIS
`;