Got some basic pokemon nodes working

This commit is contained in:
2022-05-11 03:03:42 -04:00
parent c2d8efaf4b
commit ebea0e1c3c

View File

@@ -0,0 +1,23 @@
import Layout from '../components/layout'
import { graphql } from 'gatsby'
import * as React from 'react'
const PokemonPage = ({data}) => {
return (
<Layout pageTitle="Super Cool Blog Posts">
<p>This is a page about {data.pokemon.name}</p>
</Layout>
)
}
export const query = graphql`
query ($name: String) {
pokemon(name: {eq: $name}) {
id
name
type
}
}
`
export default PokemonPage