INTERFACE

Node

Definition of the Node interface

link GraphQL Schema definition

  • interface Node {
  • # Unique identifier of the node
  • id: ID!
  • # Creator of the node (it will be a User type when it will be implemented)
  • creator: User!
  • # Owner of the node (it will be a User type when it will be implemented)
  • owner: User!
  • # Last user who has edited the node (it will be a User type when it will be
  • # implemented)
  • last_editor: User
  • # Node creation timestamp
  • created_at: DateTime!
  • # Node update timestamp
  • updated_at: DateTime!
  • # Node permissions of the user making the request
  • permissions: Permissions!
  • # Name of the file/folder
  • name: String!
  • # Description of the file/folder
  • description: String!
  • # Type of the node
  • type: NodeType!
  • # True if the owner has marked the node as favourite, false otherwise
  • flagged: Boolean!
  • # Parent folder containing the node. The parent can be null when the current node
  • # is the root folder
  • parent: Node
  • # The top level root where the node resides
  • rootId: ID
  • # Specific share of the current node with the target user (if exists)
  • #
  • # Arguments
  • # share_target_id:
  • share(share_target_id: ID!): Share
  • # List of shares of the current node (if they exist)
  • #
  • # Arguments
  • # limit: Limit: an integer of how many elements to fetch
  • # (mandatory)
  • # cursor: Cursor: a string of the last target user id fetched in
  • # the previous page (optional)
  • # sorts: Sorts: a list of ShareSort containing all the sort order
  • # desired (optional).
  • # If it is not specified, a CREATION_ASC sort is applied by default.
  • shares(limit: Int!, cursor: String, sorts: [ShareSort!]): [Share]!
  • links: [Link]!
  • }