New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gatsby-source-contentful): provide gql type definitions using content model introspection and schema-customization #12816
Closed
Closed
Changes from 12 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
cec21d1
fix(schema): fix `types` for buildUnionType config object
pieh a90d932
feat(gatsby-source-contentful): provide gql type definitions using co…
pieh c8659b6
actually let's use empty space
pieh ab73df4
Merge remote-tracking branch 'origin/master' into contentful-schema
pieh ddac58b
use hot new extensions to define resolvers instead of importing inter…
pieh 691469e
remove old RichTextNode type extension
pieh 628aa6c
revert backreferece handling removal in nodes, adjust type def genera…
pieh c3e5483
bump peerDep - we rely on extensions added in 2.5.0
pieh 738a726
remove unused import
pieh d59c28a
update snapshot - json fields no longer creates child nodes - it's em…
pieh 0971d54
get rid of useless comment
pieh 64fbe33
name union same way Gatsby does it
pieh 2e2cbb3
remove stray commented out console.log
pieh 01f1938
remove more stray comments that no longer apply after using extensions
pieh 7e14ce6
create unions always for reference fields
pieh 7f64fbd
skip checking if createTypes is available - this is hard requirment n…
pieh bc193f7
Merge remote-tracking branch 'origin/master' into contentful-schema
pieh f768ec3
skip back references fields if fieldname is already used
pieh 81996b9
Merge remote-tracking branch 'origin/master' into contentful-schema
pieh 2113bdc
using-contentful: union on refererences
pieh cb47eb0
gatsby-source-contentful: use `fieldName type` as base for backrefere…
pieh e3a3b02
using-contentful: update to make it work with changed back reference …
pieh d4d101b
chore: update yarn.lock
pieh 0350f71
handling of childMarkdownRemark
pieh 737d3d0
docs updates
pieh 248ba72
add migration step on json fields
pieh 5b155a5
remove note about api limitation
pieh c5052c2
revert unnecesary change
pieh aa1dfb9
update snapshots
pieh 9717a34
revert changes to example's config file
pieh abc0e15
Apply suggestions from code review
pieh db68354
chore: format
ae7a0e8
Apply suggestions from code review
pieh 7aa2bac
Merge remote-tracking branch 'origin/master' into contentful-schema
pieh 1c0ec2f
Merge remote-tracking branch 'origin/master' into contentful-schema
pieh c9c2bf2
don't create reverse links for untyped references, show warning
pieh File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need these comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added TO-DO in PR description to remove those changes later on - for now I use this to validate everything works when there is 0 content (schema is the same regardless if there is content or not, so queries do not break)