Skip to content

Commit 7f07376

Browse files
committed
Tweaks for v6
1 parent 7bb9508 commit 7f07376

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

modules/ROOT/pages/security/authentication.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Authentication can be configured for an entire type:
6565

6666
[source, graphql, indent=0]
6767
----
68-
type User @authentication {
68+
type User @authentication @node {
6969
id: ID!
7070
name: String!
7171
password: String!
@@ -89,7 +89,7 @@ Authentication can be configured on a per-field basis, for example:
8989

9090
[source, graphql, indent=0]
9191
----
92-
type User {
92+
type User @node {
9393
id: ID!
9494
name: String!
9595
password: String! @authentication

modules/ROOT/pages/security/authorization.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ For example, consider a `User` type with a `password` field:
181181

182182
[source, graphql, indent=0]
183183
----
184-
type User {
184+
type User @node {
185185
id: ID!
186186
username: String!
187187
password: String! @authorization(where: [{ operations: [READ, UPDATE], where: { node: { id: "$jwt.sub" } } }])

modules/ROOT/pages/security/operations.adoc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ For an aggregation query, rules with `AGGREGATE` in the operations are evaluated
6868
[source, graphql, indent=0]
6969
----
7070
query {
71-
moviesAggregate { # AGGREGATE ON OBJECT Movie
72-
title { # AGGREGATE ON FIELD_DEFINITION Movie.title
73-
longest
71+
moviesConnection {
72+
aggregate { # AGGREGATE ON OBJECT Movie
73+
title { # AGGREGATE ON FIELD_DEFINITION Movie.title
74+
longest
75+
}
7476
}
7577
}
7678
}
@@ -82,10 +84,12 @@ The same logic applies to aggregations of nested nodes:
8284
----
8385
query {
8486
movies {
85-
actorsAggregate { # AGGREGATE ON OBJECT Actor
86-
node {
87-
name { # AGGREGATE ON FIELD_DEFINITION Actor.name
88-
longest
87+
actorsConnection {
88+
aggregate { # AGGREGATE ON OBJECT Actor
89+
node {
90+
name { # AGGREGATE ON FIELD_DEFINITION Actor.name
91+
longest
92+
}
8993
}
9094
}
9195
}

0 commit comments

Comments
 (0)