Skip to content

Instantly share code, notes, and snippets.

@imjakechapman
Created November 6, 2019 07:03
Show Gist options
  • Save imjakechapman/4f089b07303ff951cb0e9777fd3a96f8 to your computer and use it in GitHub Desktop.
Save imjakechapman/4f089b07303ff951cb0e9777fd3a96f8 to your computer and use it in GitHub Desktop.
./schema/lastfm
import { gql } from "apollo-server";
import { DocumentNode } from "graphql";
// Type Defs
import { AlbumDefs } from "./album";
import { ArtistDefs } from "./artist";
import { TagDefs } from "./tag";
import { TrackDefs } from "./track";
import { UserDefs } from "./user";
const LastFMDefs: DocumentNode = gql`
extend type Query {
lastfm: LastFM
}
"Last.fm api resources"
type LastFM {
_empty: String
}
`;
const LastFMSchemaDefs: DocumentNode[] = [
LastFMDefs,
UserDefs,
ArtistDefs,
AlbumDefs,
TagDefs,
TrackDefs
];
export { LastFMSchemaDefs };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment