Open jwodder opened 2 years ago
You need to import sgqlc.types.datetime
so it will run https://github.com/profusion/sgqlc/blob/master/sgqlc/types/datetime.py#L307-L311
otherwise it doesn't have the mapping. It's not automatic to avoid polluting the conversion with undesired mappings, so you must opt-in by importing that. After that you can use and it should work
As of sgqlc v14.1, running the following code:
fails with:
Using
createdAt = non_null(Field(datetime))
fails as well. OnlycreatedAt = non_null(sgqlc.types.datetime.DateTime)
works. However, I believe the failure ofnon_null(datetime)
should be considered a bug, as things likenon_null(str)
work perfectly fine.