OBJECT

File

Definition of the File type which implements the Node interface

link GraphQL Schema definition

  • type File implements Node {
  • # Unique identifier of the file
  • id: ID!
  • # Creator of the file
  • creator: User!
  • # Owner of the file
  • owner: User!
  • # Last user who has edited the file
  • last_editor: User
  • # File creation timestamp
  • created_at: DateTime!
  • # File update timestamp
  • updated_at: DateTime!
  • # File permissions of the user making the request
  • permissions: Permissions!
  • # Name of the file
  • name: String!
  • # Extension of the file
  • extension: String
  • # Description of the file
  • description: String!
  • # Type of the node
  • type: NodeType!
  • # Mime type of the file
  • mime_type: String!
  • # Size of the file
  • size: Float!
  • # Version of the file
  • version: Int!
  • # Boolean representing if a version in kept forever or not
  • keep_forever: Boolean!
  • cloned_from_version: Int
  • # Parent folder containing the file
  • parent: Node
  • # The top level root where the node resides
  • rootId: ID
  • # True if the owner has marked the file as favourite, false otherwise
  • flagged: Boolean!
  • # Specific share of the current file with the target user (if exists)
  • #
  • # Arguments
  • # share_target_id:
  • share(share_target_id: ID!): Share
  • # List of shares of the current file (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]!
  • }