Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
doc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
common
doc
Commits
8ca8ff02
Commit
8ca8ff02
authored
6 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[feat] rfc gva: schema: add distance field
parent
c517d347
No related branches found
No related tags found
1 merge request
!3
WIP: RFC 3 : GraphQL API for Duniter Client
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
appendices/0003_RFC/schema.gql
+22
-1
22 additions, 1 deletion
appendices/0003_RFC/schema.gql
with
22 additions
and
1 deletion
appendices/0003_RFC/schema.gql
+
22
−
1
View file @
8ca8ff02
...
@@ -193,6 +193,23 @@ type Revocation {
...
@@ -193,6 +193,23 @@ type Revocation {
written
:
Boolean
!
written
:
Boolean
!
}
}
# The only field that must be supported is "out",
# all other fields may be null if the server does not implement them.
type
Distance
{
# Is the member outdistanced ?
out
:
Boolean
!
# Referring members count
sentries
:
Int
# Count referring members reached
success
:
Int
# Count referring members reached at border
successAtBorder
:
Int
# Count members reached
reached
:
Int
,
# Count members reached at border
reachedAtBorder
:
Int
}
type
Identity
{
type
Identity
{
version
:
Int
!
version
:
Int
!
type
:
String
!
type
:
String
!
...
@@ -203,7 +220,11 @@ type Identity {
...
@@ -203,7 +220,11 @@ type Identity {
signature
:
String
!
signature
:
String
!
raw
:
String
!
raw
:
String
!
written
:
Boolean
!
written
:
Boolean
!
membership
:
Membership
distance
:
Distance
!
# Membership
mb
:
Membership
# Pending memberships
pMbs
:
[
Membership
!]!
# Received certifications
# Received certifications
recvCerts
:
[
Certification
!]!
recvCerts
:
[
Certification
!]!
# Identity revocation document (=null when identity not revoked)
# Identity revocation document (=null when identity not revoked)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment