online_usersビューの権限を設定する
online_users
ビューの下の権限タブに移動して、関連する権限を追加します。
閲覧権限
このビューでは、ユーザーがデータを閲覧できるようにしたいだけなので、ミューテーションは行いません。そのため、挿入、更新、削除に対する権限は定義しません。
行の閲覧権限については、 Without any checks
を選択して、列の閲覧権限で列 id
および last_seen
を両方選択します。
Save Permissions
をクリックします。リアルタイムtodoアプリに必要なすべてのアクセス制御ルールを設定しました。
Did you find this page helpful?
Start with GraphQL on Hasura for Free
Build apps and APIs 10x faster
Built-in authorization and caching
8x more performant than hand-rolled APIs

