- has a value
- is null (to reset or drop the field in database)
- does not exits (ignore the field)
However while parsing request json into Sangria Input type, I came across a problem.
For example: I have a input type for my update case:
...
List(
InputField("name", OptionInputType(StringType)),
InputField("foo", OptionInputType(FooInputType)), ...
lazy val FooInputType = InputObjectType[Foo](...)
It works as expected for StringType Optional Input.
But, for foo, it treat the "null" and "value doesn't exist" both as None.
Is there any workaround for this? I need to receive null if null is provided and None if field doesn't exist.
Thanks in advance.