Skip to content

Instantly share code, notes, and snippets.

@imjakechapman
Created November 6, 2019 06:52
Show Gist options
  • Save imjakechapman/4e8994cd6a4c9e984148fb6a91b5f8da to your computer and use it in GitHub Desktop.
Save imjakechapman/4e8994cd6a4c9e984148fb6a91b5f8da to your computer and use it in GitHub Desktop.
./schema/index.ts
import { gql } from "apollo-server";
import { DocumentNode } from "graphql";
// TypeDefs
import { LastFMSchemaDefs } from "./lastfm";
import { SharedSchemaDefs } from "./shared";
const RootDefs: DocumentNode = gql`
type Query {
_empty: String
}
`;
// Schema TypeDefs
const typeDefs: DocumentNode[] = [
RootDefs,
...SharedSchemaDefs,
...LastFMSchemaDefs
];
export { typeDefs };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment