nexus-plugin-shield
Unlock the power of graphql-shield in your nexus app
Installation
npm install nexus-plugin-shield
Known limitations
- fragments not supported
Example Usage
Setup
// app.ts usepermissions
shield({rules: rules, options: options})
rules
A rule map must match your schema definition.
options
Context type
Nexus provide a global NexusContext
interface you can use in your rules:
rule