aPureBase / KGraphQL

Pure Kotlin GraphQL implementation
https://kgraphql.io
MIT License
298 stars 58 forks source link

Added support for differentiating between null and undefined #163

Closed Riomhchlaraitheoir closed 2 years ago

Riomhchlaraitheoir commented 2 years ago

This propoosal address the issue raised here: #103 This commit introduces a OptionalValue class which can either be OptionalValue.Defined(value: T?) or OptionalValue.Undefined. If an argument / input field has this type it is considered an optional T This works for my own use cases. I hope this can be helpful