18 lines
No EOL
418 B
JavaScript
18 lines
No EOL
418 B
JavaScript
import { gql } from "apollo-boost";
|
|
|
|
export default gql`
|
|
query ($id: Int) { # Define which variables will be used in the query (id)
|
|
Media (id: $id, type: ANIME) { # Insert our variables into the query arguments (id) (type: ANIME is hard-coded in the query)
|
|
id
|
|
title {
|
|
romaji
|
|
english
|
|
native
|
|
}
|
|
description (asHtml: false)
|
|
coverImage {
|
|
large
|
|
}
|
|
}
|
|
}
|
|
`; |