git-bug/api/graphql/schema/identity.graphql
Michael Muré 2ab6381a94
Reorganize the webUI and API code
Included in the changes:
- create a new /api root package to hold all API code, migrate /graphql in there
- git API handlers all use the cache instead of the repo directly
- git API handlers are now tested
- git API handlers now require a "repo" mux parameter
- lots of untangling of API/handlers/middleware
- less code in commands/webui.go
2020-06-27 23:03:05 +02:00

32 lines
945 B
GraphQL

"""Represents an identity"""
type Identity {
"""The identifier for this identity"""
id: String!
"""The human version (truncated) identifier for this identity"""
humanId: String!
"""The name of the person, if known."""
name: String
"""The email of the person, if known."""
email: String
"""The login of the person, if known."""
login: String
"""A non-empty string to display, representing the identity, based on the non-empty values."""
displayName: String!
"""An url to an avatar"""
avatarUrl: String
"""isProtected is true if the chain of git commits started to be signed.
If that's the case, only signed commit with a valid key for this identity can be added."""
isProtected: Boolean!
}
type IdentityConnection {
edges: [IdentityEdge!]!
nodes: [Identity!]!
pageInfo: PageInfo!
totalCount: Int!
}
type IdentityEdge {
cursor: String!
node: Identity!
}