Themis

Themis

  • Docs
  • Roadmap

›API

Getting Started

  • What is this about?
  • Installation
  • Create a Module

Guides

  • Remote Module
  • Nocks

API

  • Module
  • Remote Module
  • Transforms
  • Merge Strategy
  • CLI

Configuration

  • Configuration File
  • ENV

Transforms

Transforms can be applied to both local and remote modules. Transforms will be applied after creating an executable schema. Transforms can be used to mutate the schema of a module, e.g. to only mount the query operations of a remote schema.

Built-in Transforms

Themis exposes some transforms that you can choose to use.

Example:

const { SelectionFilter } = require('themis-graphql').transforms;

SelectionFilter

This transformation allows you to manipulate the selection of a query, e.g. to remove a subselection for a specific field.

new SelectionFilter(['article', 'content'], () => {
  return null;
})

DropFieldFilter

Allows to drop a specific field from a query completely.

new DropFieldFilter(['article', 'config'])
← Remote ModuleMerge Strategy →
  • Built-in Transforms
    • SelectionFilter
    • DropFieldFilter
Docs
Getting StartedModule API Reference
Copyright © 2019 Spring-Media