@pothos-examples/envelope-helix-fastify
TypeScript icon, indicating that this package has built-in type declarations

3.1.2 • Public • Published

A GraphQL schema wrapped with envelop

This example uses the following packages:

  • @pothos/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

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!]!
}

Readme

Keywords

none

Package Sidebar

Install

npm i @pothos-examples/envelope-helix-fastify

Weekly Downloads

89

Version

3.1.2

License

none

Unpacked Size

16.7 kB

Total Files

10

Last publish

Collaborators

  • hayes