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
Hi,
Thank you for the amazing work done here, Really appreciate it.
Currently if I want to know the content type of an entry I have to do it like: entry.sys.contentType.id and it's similar to other properties like id and type as well
Is there a way to get this info in a simpler way? for example: entry.id entry.contentType entry.type
If not then is this something the team could consider?
Thank you!
The text was updated successfully, but these errors were encountered:
In fact, it seems like the wrong types are generated.
I'm using Gatsby + Contentful. When I look at the possible GQL queries via http://localhost:8000/___graphql for some allContentful* query, then there is no entry.sys.id. However, there is an entry.id.
This is not reflected at all in the generated contentful.d.ts, thus there is a mismatch between the actual type returned by a GQL query in Gatsby vs. the generated types.
Hi,
Thank you for the amazing work done here, Really appreciate it.
Currently if I want to know the content type of an entry I have to do it like:
entry.sys.contentType.id
and it's similar to other properties likeid
andtype
as wellIs there a way to get this info in a simpler way? for example:
entry.id
entry.contentType
entry.type
If not then is this something the team could consider?
Thank you!
The text was updated successfully, but these errors were encountered: