Skip to content
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

[DNM] Demoing Gatsby Union functionality #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

[DNM] Demoing Gatsby Union functionality #2

wants to merge 4 commits into from

Conversation

uttrasey
Copy link
Owner

@uttrasey uttrasey commented Nov 22, 2017

This site is a simple visual list of sqaures and circles for the purpose of spiking some gatsby union functionality type stuff. This PR uses a proposed extension API on gatsby to specify a GrapqlUnion allowing the user to query (and in future sort, filter, page) multiple types at the same time, which would be dreamy.

CMS is contentful and it has some squares and some circles. Squares have a sideLength and Circles have a radius. Area is calculated locally and added to nodes using onCreateNode API

  • Ignore filtering, paging, sorting (can worry about that later)
  • Raising to get early feedback

Credit to Clay Allsopp for this article which was a big help https://medium.com/the-graphqlhub/graphql-tour-interfaces-and-unions-7dd5be35de0d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant