diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cbb9426404..8eccec321fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## Next release +### Relay + +The Hasura GraphQL Engine serves [Relay](https://relay.dev/en/) schema for Postgres tables which has a primary key defined. + +The Relay schema can be accessed through `/v1/relay` endpoint. + +[Add docs links][add console screenshot for relay toggle] + ### Remote Joins Remote Joins extend the concept of joining data across tables, to being able to join data across tables and remote schemas. diff --git a/console/src/Endpoints.ts b/console/src/Endpoints.ts index 5b09c4d134a..b9af5e157e1 100644 --- a/console/src/Endpoints.ts +++ b/console/src/Endpoints.ts @@ -10,6 +10,7 @@ const Endpoints = { getSchema: `${baseUrl}/v1/query`, serverConfig: `${baseUrl}/v1alpha1/config`, graphQLUrl: `${baseUrl}/v1/graphql`, + relayURL: `${baseUrl}/v1/relay`, schemaChange: `${baseUrl}/v1/query`, query: `${baseUrl}/v1/query`, rawSQL: `${baseUrl}/v1/query`, diff --git a/console/src/components/Common/Common.scss b/console/src/components/Common/Common.scss index 7ca3165a757..b85a4e26094 100644 --- a/console/src/components/Common/Common.scss +++ b/console/src/components/Common/Common.scss @@ -1263,12 +1263,6 @@ code { display: block; top: 0; z-index: 11; - - .stickySeparator { - padding-top: 60px; - margin-left: -15px; - margin-right: -15px; - } } .fixed_header_internal_link { diff --git a/console/src/components/Common/Tooltip/Tooltip.tsx b/console/src/components/Common/Tooltip/Tooltip.tsx index bdd2a9e6a58..8d1250b0ee1 100644 --- a/console/src/components/Common/Tooltip/Tooltip.tsx +++ b/console/src/components/Common/Tooltip/Tooltip.tsx @@ -2,24 +2,21 @@ import React from 'react'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Tooltip'; import styles from './Tooltip.scss'; - const tooltipGen = (message: string) => { return {message}; -}; - -export interface TooltipProps extends React.ComponentProps<'i'> { +};export interface TooltipProps extends React.ComponentProps<'i'> { message: string; placement?: 'right' | 'left' | 'top' | 'bottom'; className?: string; } - -const ToolTip: React.FC = ({ message, placement = 'right' }) => ( +const ToolTip: React.FC = ({ message, placement = 'right', children }) => ( -