You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/docs/rules.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ import { Callout } from '@theguild/components'
2
2
3
3
# Rules
4
4
5
-
Rules let you define reusable blocks of permissions that you use in [Shield](./shield). GraphQL Shield packs a collection of general rules that make your permissions easier to write and your rules more reusable. Each rule you create should be easily explicable in one sentantce and should check exactly one permission.
5
+
Rules let you define reusable blocks of permissions that you use in [Shield](./shield). GraphQL Shield packs a collection of general rules that make your permissions easier to write and your rules more reusable. Each rule you create should be easily explicable in one sentence and should check exactly one permission.
6
6
7
7
For example, it's a good practice to have a rule that checks if someone is an admin and another one that checks if someone owns some data, and a bad practice to have both checks in one rule.
0 commit comments