Skip to content

Instantly share code, notes, and snippets.

@conorhastings
Created May 15, 2019 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conorhastings/5274d78e2ed91ca6e6506196f91b765e to your computer and use it in GitHub Desktop.
Save conorhastings/5274d78e2ed91ca6e6506196f91b765e to your computer and use it in GitHub Desktop.
export const userType = `
type User {
id: Int!
title: String!
}
`;
export const resolveUserData() {
return someFunctionThatGetsData();
}
import { userType, resolveUserData } from '@whatever/user-service';
// in schema
`extend type User {
buyingTeam: String!
}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment