Skip to content

Instantly share code, notes, and snippets.

@imjakechapman
Created November 6, 2019 07:01
Show Gist options
  • Save imjakechapman/6b7b97448ff9713bb6b48b9a63cf70d9 to your computer and use it in GitHub Desktop.
Save imjakechapman/6b7b97448ff9713bb6b48b9a63cf70d9 to your computer and use it in GitHub Desktop.
./schema/shared
import { gql } from "apollo-server";
import { DocumentNode } from "graphql";
// Our Shared Type Definitions
const SharedDefs: DocumentNode = gql`
"Last.fm image resource"
type Image {
size: String!
url: String!
}
`;
const SharedSchemaDefs: DocumentNode[] = [SharedDefs];
export { SharedSchemaDefs };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment