open-index/open-npm huggingface dataset:
npm package: @giraphql-examples/envelope-helix-fastify
Description: This example uses the following packages:
Latest version: 1.1.0

# A GraphQL schema wrapped with envelop

This example uses the following packages:

- `@giraphql/core`: For building the schema
- `@envelop/core`: For wrapping schema execution with additional logic
- `graphql-helix`: For parsing and processing requests
- `fastify`: For routing and starting the http server

## 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!]!
}
```
npm package: @giraphql-examples/helix
Description: This example uses the following packages:
Latest version: 1.0.0

# A GraphQL API built with graphql-helix

This example uses the following packages:

- `@giraphql/core`: For building the schema
- `@giraphql/plugin-prism`: For prisma based type definitions, and efficient queries
- `graphql-helix`: For executing queries based on incoming requests

## 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!]!
}
```
npm package: @giraphql-examples/prisma-relay
Description: This example uses the following packages:
Latest version: 1.1.0

# A relay compatible 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
- `@giraphql/plugin-relay`: For adding relay compatible connections and nodes
- `@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 implements Node {
  author: User!
  comment: String!
  id: ID!
  post: Post!
}

interface Node {
  id: ID!
}

type PageInfo {
  endCursor: String
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: String
}

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

type Query {
  node(id: ID!): Node
  nodes(ids: [ID!]!): [Node]!
  post(id: ID!): Post
  posts(after: ID, before: ID, first: Int, last: Int): QueryPostsConnection!
  user(id: ID!): User
}

type QueryPostsConnection {
  edges: [QueryPostsConnectionEdge]!
  pageInfo: PageInfo!
}

type QueryPostsConnectionEdge {
  cursor: String!
  node: Post!
}

type User implements Node {
  comments(after: ID, before: ID, first: Int, last: Int): UserCommentsConnection!
  firstName: String!
  fullName: String!
  id: ID!
  lastName: String!
  posts: [Post!]!
}

type UserCommentsConnection {
  edges: [UserCommentsConnectionEdge]!
  pageInfo: PageInfo!
}

type UserCommentsConnectionEdge {
  cursor: String!
  node: Comment!
}
```
npm package: @giraphql-examples/relay
Description: This example uses the following packages:
Latest version: 1.0.0

# 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!]!
}
```
npm package: @giraphql-examples/simple-classes
Description: This example shows how to create a GraphQL API that exposes data that is described by interfaces
Latest version: 1.1.0

# A Simple GiraphQL API using data described by typescript interfaces

This example shows how to create a GraphQL API that exposes data that is described by interfaces

This example uses the following packages:

- `@giraphql/core`: For building the schema
- `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!]!
}
```
npm package: @giraphql-examples/simple-interfaces
Description: This example shows how to create a GraphQL API that exposes data that is described by interfaces
Latest version: 1.1.0

# A Simple GiraphQL API using data described by typescript interfaces

This example shows how to create a GraphQL API that exposes data that is described by interfaces

This example uses the following packages:

- `@giraphql/core`: For building the schema
- `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!]!
}
```