@aphro/mutation-grammar
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

Mutation Grammar

Extends Aphrodite SDL with a grammar for defining mutations.

Before:

User as Node {
  id: ID<User>
  name: NaturalLanguage
  password: PBKDF2
}

After:

User as Node {
  id: ID<User>
  name: NaturalLanguage
  password: PBKDF2
} & Mutations {
  create {
    name
    password
  }

  delete {}

  rename {
    name
  }
}

This can be used in conjunction with the Auth extension to enable declaring auth policies on mutations.

Readme

Keywords

none

Package Sidebar

Install

npm i @aphro/mutation-grammar

Weekly Downloads

2

Version

0.3.2

License

none

Unpacked Size

32 kB

Total Files

29

Last publish

Collaborators

  • tantaman