Skip to content
Snippets Groups Projects
Commit 55682095 authored by Éloïs's avatar Éloïs
Browse files

[feat] rfc gva: add network documents to schema

parent 9805ca10
No related branches found
No related tags found
1 merge request!3WIP: RFC 3 : GraphQL API for Duniter Client
......@@ -7,6 +7,8 @@
type Query {
node: Node
current: Block
peers: Peers
heads: Heads
block(number: Int!): Block
blocks(
paging: Paging!
......@@ -51,6 +53,23 @@ type Query {
# Queries return types
#################################
type Counters {
# Nombre total d'éléments
elements: Int!
# Total number of pages
pages: Int!
}
type Peers {
counters: Counters!
peers: [Peer!]!
}
type Heads {
counters: Counters!
peers: [Head!]!
}
type Identities {
counters: Counters!
identities: [Identity!]!
......@@ -76,13 +95,6 @@ type Transactions {
transactions: [Transaction!]!
}
type Counters {
# Nombre total d'éléments
elements: Int!
# Total number of pages
pages: Int!
}
#################################
# Inputs
#################################
......@@ -149,9 +161,39 @@ type Sandboxes {
type Node {
summary: Summary
peer: Peer,
head: Head,
sandboxes: Sandboxes
}
#################################
# NETWORK types
#################################
type Peer {
issuer: String!,
nodeId: Int!,
blockNumberAndHash: BlockNumberAndHash!,
endpoints: [String!]!,
signature: String!,
}
type Head {
version: Int!,
currency: String!,
outgoingConf: Int!,
incomingConf: Int!,
freeMirrorRooms: Int!,
freeMemberRooms: Int!,
nodeID: Int!,
pubkey: String!,
blockNumberAndHash: BlockNumberAndHash!,
software: String!,
softVersion: String!,
signature: String!,
step: Int!,
}
#################################
# WOT types
#################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment