Open bwlt opened 4 years ago
Is this okay by you?
No, maybe we have introduced a bug: https://github.com/birkir/gatsby-source-prismic-graphql/pull/184/files?file-filters%5B%5D=.png&file-filters%5B%5D=.ts&file-filters%5B%5D=.tsx#diff-17287dcb0b3d1a60b6b56e8e1ef2337dL216 The diff is too wide, and it have diverged a lot from master 😅 I think it's better close this PR and reopen it in the future
With this changes a user can decide which
fieldName
to use and whichtypeName
to use. This commit comes with a new example foldertypename-fieldname
where this feature can be tested.The primary motivation of this feature is because of the prismic query size limit (see issue #15). With this changes a user can change the typeName to something smaller than "PRISMIC", like "PRS"; this difference of characters, multiplied the times where on a query is needed to match the fragments (
...on PRS_MySliceType
on every slice) can reduce the query size.