0.1.0 • Published 3 years ago

@fellesdatakatalog/graphql v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@fellesdatakatalog/graphql

Felles datakatalog collection of reusable GraphQL modules.

Installation

npm i @fellesdatakatalog/graphql

Dependencies

  • graphql
  • apollo-server
  • axios
  • jose
  • validator
  • winston

Usage

Directives

The following directives are available:

  • @auth - checks authorisation state when accessing GraphQL fields and objects
  • @permission - checks for necessary permissions when accessing GraphQL fields and objects
  • @shape - allows adding constraints to GraphQL fields

In order to add a directive to the schema, do the following:

  • Add directive-specific type definitions to schema
  • Register directive with schema