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 working with Sanity Graphql, some remote schema types use TypeName and others use SanityTypeName, how can I achieve all generated Gatsby types say SanityRemoteTypeName, providing a gatsbyTypePrefix = "Sanity" will cause some types to become SanitySanityRemoteTypeName and not providing any gatsbyTypePrefix will result in some fields being RemoteTypeName.
So I think gatsbyTypePrefix option should accept a function that will get passed the RemoteTypeName and it will check if it's already prefixed with Sanity then do nothing otherwise prefix with Sanity
The text was updated successfully, but these errors were encountered:
I'm working with Sanity Graphql, some remote schema types use
TypeName
and others useSanityTypeName
, how can I achieve all generated Gatsby types saySanityRemoteTypeName
, providing agatsbyTypePrefix = "Sanity"
will cause some types to becomeSanitySanityRemoteTypeName
and not providing anygatsbyTypePrefix
will result in some fields beingRemoteTypeName
.So I think
gatsbyTypePrefix
option should accept a function that will get passed theRemoteTypeName
and it will check if it's already prefixed withSanity
then do nothing otherwise prefix withSanity
The text was updated successfully, but these errors were encountered: