Skip to content

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.

2 participants