building-envelope-data / database

Reference implementation of a product data server as part of the product data network buildingenvelopedata.org
MIT License
0 stars 0 forks source link

Implement the `OpticalDataPropositionInput` `not` #52

Open christoph-maurer opened 7 months ago

christoph-maurer commented 7 months ago

When I query https://www.solarbuildingenvelopes.com/graphql/ with

query {
  byNegation: allData(
    where: { not: { gValues: { some: { greaterThanOrEqualTo: 0.5 } } } }
  ) {
    edges {
      node {
        uuid
      }
    }
  }
}

I receive

{
  "errors": [
    {
      "message": "The specified input object field `not` does not exist.",
      "locations": [
        {
          "line": 3,
          "column": 14
        }
      ],
      "path": [
        "byNegation"
      ],
      "extensions": {
        "field": "not",
        "specifiedBy": "http://spec.graphql.org/October2021/#sec-Input-Object-Field-Names"
      }
    }
  ]
}

because not isn't part of type-defs.graphqls).