Created
November 6, 2019 07:03
-
-
Save imjakechapman/4f089b07303ff951cb0e9777fd3a96f8 to your computer and use it in GitHub Desktop.
./schema/lastfm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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