mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 01:41:49 +08:00
47 lines
869 B
JavaScript
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/?',
|
|
},
|
|
},
|
|
};
|