Skip to content

Custom GraphQL BFF-Layer to support any kind of frontend

Notifications You must be signed in to change notification settings

zubairaltaf10/Custom-GQL-Bff-Layer

Repository files navigation

bff-layer-starter

Custom GraphQL BFF Layer starter kit to support your frontend with everything you need.

Setup

npm i

Running

npm start
# OR
npm run watch

```sh
# Generate TypeScript types from *.graphql schema files
npm run generate
# Trigger full clean/build
npm run build

## API

### `GET /`

Simple endpoint that acts as a health and/or status check.

#### Example response

```json
{
    "env": {
    "node_env": "development",
    "se_env": "DEVELOPMENT"
    }
}

Example request

{
  "offset": 0,
  "limit":10
}
query {
    items {
      description
      isConfigured
      name
      type
    }
    offset
    limit
    totalCount
}

#### Example response

```json
{
  "data": {
    "connectors": {
      "items": [
        {
          "description": "This is the first connector",
          "isConfigured": true,
          "name": "Connector 1",
          "type": null
        },
        {
          "description": "This is the second connector",
          "isConfigured": false,
          "name": "Connector 2",
          "type": null
        },
        {
          "description": "This is the third connector",
          "isConfigured": true,
          "name": "Connector 3",
          "type": null
        }
      ],
      "offset": 0,
      "limit": 10,
      "totalCount": 3
    }
  }
}

About

Custom GraphQL BFF-Layer to support any kind of frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published