Skip to content

API GraphQL CRUD in Node.js with Express, Typescript and SQLite

Notifications You must be signed in to change notification settings

frontandrews/crud-graphql-ts-node-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL CRUD using Node, TypeScript, Apollo, Express, and SQLite

This project provides a simple GraphQL-based CRUD (Create, Read, Update, Delete) API using Apollo Server, Express, and SQLite as the database. With TypeScript for static typing.

Requirements

Node.js

Install the dependencies:

npm install

Run the server:

yarn build

yarn dev

Usage

Navigate to http://localhost:4000 in your web browser to access the Apollo Server Playground.

GraphQL Operations

Add an Item:

mutation {
  addItem(name: "Sample Item") {
    id
    name
  }
}

Retrieve All Items:

query {
  items {
    id
    name
  }
}

About

API GraphQL CRUD in Node.js with Express, Typescript and SQLite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published