useEngine

useEngine

Package nameWeekly DownloadsVersionLicenseUpdated
@envelop/core (opens in a new tab)DownloadsVersionLicenseFeb 20th, 2023

useEngine

This plugin can be used to customize the GraphQL Engine.

import { envelop, useEngine } from '@envelop/core'
import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
 
const getEnveloped = envelop({
  plugins: [
    useEngine({
      parse,
      validate,
      specifiedRules,
      execute,
      subscribe
    })
  ]
})