vue-playground/src/gql/anime.js
2022-05-15 15:35:02 +02:00

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
}
}
}
`;