Introduction

@foadonis/graphql allows you to build large-scale and production ready GraphQL APIs powered by AdonisJS.

Built on top of TypeGraphQL it leverages AdonisJS ecosystem allowing you to deliver best-in-class GraphQL APIs.

GraphQL Playground

import {  } from '@foadonis/graphql'
import  from '#models/recipe'

@(() => )
export default class  {
  @Query(() => )
  (@Arg('recipeId') : string) {
    return .findOrFail()
  }

  @Mutation(() => )
  () {
    return .create({
      : 'New recipe',
    })
  }
}

Features

✔ End-to-end type safety
✔ Supports both Apollo Server and Yoga Server
✔ Out of the box authentication with @adonisjs/auth
✔ Out of the box authorization with Bouncer
✔ Real-time subscriptions over Websockets

On this page