message: Tidy up component
diff: @@ -25,38 +25,8 @@ export class Graphiql extends Document {
  }
  }
  - async graphQLFetcher(params): Promise<{}> {
  - if (params) {
  - console.error("Ignore params");
  - }
  - // this.graphqlBase(params).then((response) => {
  - // console.log(response);
  - // return response;
  - // })
  - return new Promise((resolve) => {
  -
  - resolve(root);
  - });
  - }
  -
  public async graphqlBase(params) {
  - console.log(params);
  - const query = `
  - {
  - map(key: "insights") {
  - key
  - type
  - fields {
  - key
  - type
  - }
  - }
  - }`;
  - // map(Key) works. map does not
  - console.log(query);
  - console.log(params.query);
  return graphql(schema, params.query, rootResolvers).then((response) => {
  - console.log(response);
  return response;
  });
  @@ -134,11 +104,3 @@ type Query {
  maps: [ Map ]
  }
  `);
  -
  -// // TODO: is there a none root resolver?
  -// const rootResolvers = {
  -// map: (params) => {
  -// return root.find((value) => value.key === params.key );
  -// },
  -// maps: () => root,
  -// };
  