Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 3, 2022
1 parent dc1d95f commit 3b83ef8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 38 deletions.
32 changes: 0 additions & 32 deletions .changeset/angry-rats-allow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/friendly-rivers-walk.md

This file was deleted.

35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# graphql-no-alias

## 2.0.0

### Major Changes

- dc1d95f: Implement imperative configuration

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

```ts
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

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql-no-alias",
"version": "1.0.1",
"version": "2.0.0",
"private": false,
"description": "No alias directive for graphql mutation and query types. It can limit the amount of alias fields that can be used for queries and mutations. Preventing batch attacks.",
"keywords": [
Expand Down

0 comments on commit 3b83ef8

Please sign in to comment.