Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • J jz-api-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • jizhi-backend
  • jz-api-core
  • Wiki
  • Home

Home · Changes

Page history
xigua created page: home authored Jul 06, 2017 by xigua's avatar xigua
Hide whitespace changes
Inline Side-by-side
Showing with 5 additions and 1 deletion
+5 -1
  • home.md home.md +5 -1
  • No files found.
home.md
View page @ 85be9cd2
...@@ -27,4 +27,8 @@ ...@@ -27,4 +27,8 @@
1. id - 用户的id 1. id - 用户的id
2. role - 当前用户的角色 2. role - 当前用户的角色
* SysAdmin - 上面Me的一个实例,用于指代系统管理员,用户比如cron job中创建临时Context时设置Me信息 * SysAdmin - 上面Me的一个实例,用于指代系统管理员,用户比如cron job中创建临时Context时设置Me信息
* AnonymousUser - Me的另一个实例 * AnonymousUser - Me的另一个实例,实际值为 {_id:'0', role: 'user'} 代表未登录用户(因为id为0)
\ No newline at end of file * Context - 最重要的对象之一,一个request在服务器的生命周期会贯穿着一个Context object,里面的一些属性非常用有
1. me - Me的实例,包含当前用户的信息
2. startTime - 这个context被初始化的时间
3. query - graphql的query信息
\ No newline at end of file
Clone repository
  • Home
  • jz backend project skeleton