123456789101112131415161718192021222324252627282930 |
- import React from "react"
- const IndexPage = ({data}) => {
- return (
- <div>
- <b>Titre : </b>
- {data.truc.title}
- <br></br>
- <b>Nombre de pages : </b>
- {data.truc.pages}
- <br></br>
- <b>Doc Id : </b>
- {data.truc.docid}
- </div>
- )}
- export const query = graphql`
- query MyQuery {
- truc {
- id
- title
- pages
- docid
- }
- }
- `
- export default IndexPage
|