Releases: ivandotv/graphql-no-alias
Releases · ivandotv/graphql-no-alias
[email protected]
Patch Changes
- Updated dependencies [b8195c3]
[email protected]
Patch Changes
- Updated dependencies [2e859cd]
[email protected]
[email protected]
Patch Changes
- e38cff0: update readme
[email protected]
Patch Changes
- 6bffb8d: Update docs
[email protected]
Patch Changes
- Updated dependencies [e38cff0]
[email protected]
Patch Changes
- Updated dependencies [6bffb8d]
[email protected]
[email protected]
v2.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