storybook/examples/official-storybook/stories/addon-graphql.stories.js
Michael Shilman 09c5f039aa Merge pull request #7695 from Superpencil/patch-2
Michael this is unacceptable.
2019-09-13 22:55:55 -04:00

47 lines
869 B
JavaScript

import React from 'react';
export default {
title: 'Addons|GraphQL',
};
export const getPikachu = () => <div>hello</div>;
getPikachu.story = {
name: 'get Pikachu',
parameters: {
graphiql: {
query: `{
pokemon(name: "Pikachu") {
id
number
name
attacks {
special {
name
type
damage
}
}
evolutions {
id
number
name
weight {
minimum
maximum
}
attacks {
fast {
name
type
damage
}
}
}
}
}`,
url: 'https://graphql-pokemon.now.sh/?',
},
},
};