hasura/graphql-engine

docs: examples of mutation by anonymous role

Open

#308 创建于 2018年8月24日

在 GitHub 查看
 (5 评论) (0 反应) (1 负责人)TypeScript (2,787 fork)batch import
c/docshelp wanted

仓库指标

Star
 (31,371 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

There are quite a few common use-cases around capturing mutations from anonymous users but without making it too easy for malicious users to spam the backend.

  1. Likes or visit counter
  2. other examples

Reasonable ways to determine a unique anonymous user:

  1. client generated session-id. Possible con: not terribly hard for a sophisticated user to fake
  2. IP based value. Possible con: users on a campus network might have UX issues with their likes getting rejected
  3. recaptcha based value. Possible con: ugh UX

(Via @thangngoc and @7777 on discord)

贡献者指南