Open iiq374 opened 1 year ago
If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you. If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines. You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.
Still reproduces on Cube v0.36.7:
Yes, confirmed this is still happening on latest version Cube v0.36.7:
Describe the bug Where a date or datetime is in GQL whenever that is an optional field an error is returned EG: Message: Cannot return null for non-nullable field TimeDimension.day It seems to be because although the TimeDimension is correctly created as optional in the GQL Schema, the properties are not - so querying for the property creates the error.
To Reproduce Steps to reproduce the behavior: Create a cube with a time dimension:
Query that field via GQL interface: managementStartDate { day }
Receive errors per null field.
Expected behavior Where the underlying data is null there should be no error included in the errors array.
Screenshots
Minimally reproducible Cube Schema In case your bug report is data modelling related please put your minimally reproducible Cube Schema here. You can use selects without tables in order to achieve that as follows.
Version: 0.33.39
Additional context