Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Designing a GraphQL API
@willcosgrove
Copy link

willcosgrove commented Aug 4, 2018

I'm not sure I understand your question @smolinari. You add a field to a type definition. That field then becomes available everywhere that type is being returned. So adding a field only requires adding it in one place.

@tim-phillips
Copy link

tim-phillips commented Aug 20, 2018

@smolinari You only need to define types on the server, the front-end dev can simply reference the types when writing queries and mutations on the client. Your graphql server is the source of truth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment