Node
Node Structures, you may need understand it to walk into our API



Node

A Graph node is a ClassApp's object, it has:

fields
A node may have their own properties such as Id, name, status.

node
It searches a specific adjacent node by sending node id.

nodeConnection
Complex structure which returns every adjacent nodes with a specific type: Entity may have one or more User.

Node Example
{
  node(id: 4242)
  ... on Entity{
    id
    fullname
    created
    message(id: 55){
      content
      subject
    }
  }
}


NodeConnection

The ClassApp GraphQL API has had a structure based on Facebook Social Graph:

nodes
It is basically array things such as a User, an Entity, a Group, an Organization

totalCount
It represents the size of the Array nodes

pageInfo
It has two properties hasPreviousPage and hasNextPage each one is a boolean type to help pagination.

edges
The connections between those things, such as User, an Entity, a Group, an Organization
NodeConnection Example
{
  organizations{
    edges{
      node
      cursor
    }
    nodes{
     #Organizations Fields ...
    }
    pageInfo{
      hasNextPage
      hasPreviousPage
    }
    totalCount
  }
}