🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

graphql-no-alias

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-no-alias - npm Package Versions

2

3.0.3

Diff
ivandotv
published 3.0.3 •
ivandotv
published 3.0.2 •
ivandotv
published 3.0.1 •
ivandotv
published 3.0.0 •
ivandotv
published 2.0.2 •
ivandotv
published 2.0.1 •
ivandotv
published 1.0.4 •
ivandotv
published 1.0.3 •
ivandotv
published 1.0.2 •
ivandotv
published 2.0.0 •

Changelog

Source

2.0.0

Major Changes

  • dc1d95f: Implement imperative configuration

    With imperative configuration, there is no need for type definition and schema modification.

    const permissions = {
      Query: {
        '*': 2, // default value for all queries
        getAnotherUser: 5 // custom value for specific query
      },
      Mutation: {
        '*': 1 //default value for all mutations
      }
    }
    const { validation } = createValidation({ permissions })
    
    const schema = buildSchema(/* GraphQL */ `
      type Query {
        getUser: User
        getAnotherUser: User
      }
      type User {
        name: String
      }
    `)
    

    When the permissions key is passed to configuration, schema directives will be ignored.

  • fccb773: Change function signature, make it use a single config object

2