Update documentation, add GraphiQL to docs (#175)
* Update docusaurus and fix security vulnerabilities * Begin cleanup docs * Remove redocusaurus * Add graphiql in doc * Add architecture schema * New tableIcons and cleanup docs
This commit is contained in:
19
docs/src/pages/graphql.js
Normal file
19
docs/src/pages/graphql.js
Normal file
@ -0,0 +1,19 @@
|
||||
import { createGraphiQLFetcher } from '@graphiql/toolkit';
|
||||
import { GraphiQL } from 'graphiql';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import Layout from '@theme/Layout';
|
||||
|
||||
import 'graphiql/graphiql.css';
|
||||
|
||||
const fetcher = createGraphiQLFetcher({ url: 'https://api.twenty.com/graphql' });
|
||||
|
||||
export default function graphQL() {
|
||||
return (
|
||||
<Layout title="Hello" description="Hello React Page">
|
||||
<div class="fullHeightPlayground">
|
||||
<GraphiQL fetcher={fetcher} />
|
||||
</div>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user