The-Devoyage / subgraph

A POC written in rust to generate a functional API based on a simple config/schema.
GNU General Public License v3.0
6 stars 0 forks source link

Not Required Should Return Null #65

Closed nickisyourfan closed 1 year ago

nickisyourfan commented 1 year ago

If a field is "Not Required" and the value is null in the database or from the data source, the value should return null in the graphql response.

Steps to reproduce -

  1. Query for object that has required = false with string.
  2. String prop in response is empty string instead of null.