An open API service indexing awesome lists of open source software.

https://github.com/dpbm/apollo-test

Testing apollo and graphql
https://github.com/dpbm/apollo-test

apollo graphql js node nodejs pnpm ts typescript

Last synced: 9 days ago
JSON representation

Testing apollo and graphql

Awesome Lists containing this project

README

          

# Apollo + GraphQL

Testing these technologies with nodejs.

## how to use
```bash
pnpm compile && pnpm start
```
after running the project, connect to `http://localhost:4000` and run the queries

## Data

```GraphQL
Book{
title: String
author: Author
}

Author{
name: String
books: [Book]
}
```

## Queries

```GraphQL
books: [Book]
authors: [Author]
```

## Mutations

```GraphQL
addBook(title: String, author:String): Book;
removeBook(title:String): Book;
```