# @giraphql-examples/relay

> This example uses the following packages:

Latest version **1.0.0** (published 2021-12-15) · 0 weekly downloads

## Install

```sh
npm install @giraphql-examples/relay
pnpm add @giraphql-examples/relay
yarn add @giraphql-examples/relay
bun add @giraphql-examples/relay
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-12-15 |
| First published | 2021-12-15 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 120.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | hayes |

## Links

- npm: https://www.npmjs.com/package/@giraphql-examples/relay
- npm.io page: https://npm.io/package/@giraphql-examples/relay

## Dependencies (8)

- [faker](https://npm.io/package/faker.md) ^5.5.3
- [prisma](https://npm.io/package/prisma.md) ^3.6.0
- [ts-node](https://npm.io/package/ts-node.md) ^10.4.0
- [@types/faker](https://npm.io/package/@types/faker.md) ^5.5.9
- [apollo-server](https://npm.io/package/apollo-server.md) ^3.5.0
- [@giraphql/core](https://npm.io/package/@giraphql/core.md) ^2.22.0
- [@prisma/client](https://npm.io/package/@prisma/client.md) ^3.6.0
- [@giraphql/plugin-prisma](https://npm.io/package/@giraphql/plugin-prisma.md) ^0.14.0

## Recent versions

- 1.0.0 (latest) — 2021-12-15

## README

# A GraphQL API built with prisma

This example uses the following packages:

- `@giraphql/core`: For building the schema
- `@giraphql/plugin-prism`: For prisma based type definitions, and efficient queries
- `@prisma/client`: For querying data from a database
- `prisma`: For running migrations and generating `@prisma/client`
- `apollo-server`: For creating a server that executes the schema

## Schema

```graphql
type Comment {
  author: User!
  comment: String!
  id: ID!
  post: Post!
}

type Post {
  author: User!
  comments: [Comment!]!
  content: String!
  id: ID!
  title: String!
}

type Query {
  post(id: ID!): Post
  posts(skip: Int, take: Int): [Post!]!
  user(id: ID!): User
}

type User {
  comments: [Comment!]!
  firstName: String!
  fullName: String!
  id: ID!
  lastName: String!
  posts: [Post!]!
}
```

---
_Source: https://npm.io/package/@giraphql-examples/relay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
