Open MattA48 opened 1 year ago
Seems like a javascript limitation. This would also not serialize correctly and would also bring you into trouble with your frontend.
@rstaib @artola
OK we've not actually got to the point of using the FE with this, but we've used similar in other places without issue. What's the expected problem, the number is smaller than Number.MAX_SAFE_INTEGER, unless the handling of nullability causes other problems?
I added a minimal reproduction link to the initial comment.
Interestingly, if you change Long
to Long!
, then the error is:
Incorrect type. Expected "string".
Is there an existing issue for this?
Product
Banana Cake Pop
Describe the bug
I have a schema with an input object which contains a field of type long?
When I enter a long value in GraphQL variables I have an amber error report stating 'Incorrect type. Expected "null"
Relevant type from schema:
type SeriesDefinition { publishingSchedule: PublishingSchedule! getNextPublicationDueAfter(dateTimestamp: Long!): Long! nextPublicationDueDateFromToday: Long! nextPublicationDueDateFromLastPublished: Long! id: String! longName: String! appliesFrom: Long appliesUntil: Long publishingScheduleId: String! seriesScheduleExceptions: [ScheduleException!]! }
Steps to reproduce
https://github.com/glen-84/hc-6396 (.NET 8, BCP 14.0.0)
Relevant log output
No response
Additional Context?
No response
Version
8.0.2 MacOS