Skip to content

roiweinreb/mini-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini GraphQL

Minimal GraphQL server with Express for testing Sentry integration and database errors.

Quick Start

  1. Start PostgreSQL database:

    docker run --name mini-graphql-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=mini_graphql_test -p 5432:5432 -d postgres
  2. Install dependencies and start server:

    npm install
    npm start
  3. Test GraphQL queries at http://localhost:4434/graphql:

    Test Sentry error:

    query {
      testSentry(input: {})
    }

    Test database error:

    query {
      testDbError(input: {invalidQuery: "test"})
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors