message: Move fetcher into component
diff: @@ -19,19 +19,13 @@ export class Graphiql extends Document {
  if (maybeDiv) {
  ReactDOM.render(
  React.createElement(GraphiQL, {
  - fetcher: graphQLFetcher,
  + fetcher: this.graphQLFetcher,
  schema: schema
  } ), maybeDiv);
  }
  }
  -}
  -// Example chainloader bootstrap.
  -export async function instantiate(): Promise<IChaincode> {
  - return DataStore.instantiate(new Graphiql());
  -}
  -
  -async function graphQLFetcher(params) {
  + async graphQLFetcher(params) {
  if (params) {
  console.error("Ignore params");
  }
  @@ -39,6 +33,13 @@ async function graphQLFetcher(params) {
  resolve(root);
  });
  }
  +}
  +
  +// Example chainloader bootstrap.
  +export async function instantiate(): Promise<IChaincode> {
  + return DataStore.instantiate(new Graphiql());
  +}
  +
  const root = [
  {
  