mirror of
https://github.com/sergeyyarkov/blog-example.git
synced 2026-10-11 10:19:04 +03:00
23 lines
373 B
JavaScript
23 lines
373 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
const ARTICLE_QUERY = gql`
|
|
|
|
query Article($id: ID!) {
|
|
article(id: $id) {
|
|
id
|
|
title
|
|
content
|
|
image {
|
|
url
|
|
}
|
|
category {
|
|
id
|
|
name
|
|
}
|
|
published_at
|
|
}
|
|
}
|
|
|
|
`
|
|
|
|
export default ARTICLE_QUERY |