Created
November 6, 2019 07:01
-
-
Save imjakechapman/6b7b97448ff9713bb6b48b9a63cf70d9 to your computer and use it in GitHub Desktop.
./schema/shared
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"; | |
// 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