You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm recently started working with Gatsby's GraphQL Typegen and types are being generated as expected. However typescript is givieng null error onrequired fields. For example...
Type 'string | null | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.ts(2322)
I've read your Strict Mode announcement post and your Strict Mode docs, but I'm not sure how to enable Strict Mode with this source plugin.
Any guidance is very highly appreciated.
The text was updated successfully, but these errors were encountered:
@dante-blitz unfortunately the strict mode is for our GraphQL API. Gatsby is using our REST API to fetch data and then exposes it through their internal GraphQL API. So we would need to rewrite the source plugin using our latest JS client that is in Typescript: https://github.com/datocms/js-rest-api-clients
Hi there,
I'm recently started working with Gatsby's GraphQL Typegen and types are being generated as expected. However typescript is givieng null error onrequired fields. For example...
I've read your Strict Mode announcement post and your Strict Mode docs, but I'm not sure how to enable Strict Mode with this source plugin.
Any guidance is very highly appreciated.
The text was updated successfully, but these errors were encountered: