@@ -34,7 +34,7 @@ type User @node {
3434} 
3535
3636type Post @node @authorization(filter: [ 
37-     { where: { node: { author: { id : "$jwt.sub" } } } } 
37+     { where: { node: { author: { id_EQ : "$jwt.sub" } } } } 
3838]) { 
3939    title: String! 
4040    content: String! 
@@ -58,7 +58,7 @@ For instance, to only require filtering for the reading and aggregating posts:
5858[source, graphql, indent=0]
5959---- 
6060type Post @node @authorization(filter: [ 
61-     { operations: [READ, AGGREGATE] where: { node: { author: { id : "$jwt.sub" } } } } 
61+     { operations: [READ, AGGREGATE] where: { node: { author: { id_EQ : "$jwt.sub" } } } } 
6262]) { 
6363    title: String! 
6464    content: String! 
@@ -87,7 +87,7 @@ type JWT @jwt {
8787} 
8888
8989type User @node @authorization(validate: [ 
90-     { where: { node: { id : "$jwt.sub" } } } 
90+     { where: { node: { id_EQ : "$jwt.sub" } } } 
9191    { where: { jwt: { roles_INCLUDES: "admin" } } } 
9292]) { 
9393    id: ID! 
@@ -112,7 +112,7 @@ For instance, to only require validation for the update or deletion of a post:
112112[source, graphql, indent=0]
113113---- 
114114type Post @node @authorization(validate: [ 
115-     { operations: [UPDATE, DELETE] where: { node: { author: { id : "$jwt.sub" } } } } 
115+     { operations: [UPDATE, DELETE] where: { node: { author: { id_EQ : "$jwt.sub" } } } } 
116116]) { 
117117    title: String! 
118118    content: String! 
@@ -140,8 +140,8 @@ type User @node {
140140} 
141141
142142type Post @node @authorization(filter: [ 
143-     { where: { node: { author: { id : "$jwt.sub" } } } } 
144-     { requireAuthentication: false, operations: [READ], where: { node: { public : true } } } 
143+     { where: { node: { author: { id_EQ : "$jwt.sub" } } } } 
144+     { requireAuthentication: false, operations: [READ], where: { node: { public_EQ : true } } } 
145145]) { 
146146    title: String! 
147147    content: String! 
0 commit comments