Skip to content
This repository was archived by the owner on Oct 27, 2019. It is now read-only.

0xcaff/nice-sharebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nice-sharebase

Playground

ShareBase is a cloud document storage solution targeted towards enterprise. This is a GraphQL wrapper around the official ShareBase API. It maintains long lived sessions, batches requests and caches them to resolve queries as fast as possible. Try it out in the playground. Checkout the schema to see what the API can do.

Here's an example of a query you can make against nice-sharebase:

libraries {
  name

  folders {
    folders {
      name
      id
    }

    documents {
      name
      id
    }
  }
}

It will resolve to:

{
  "data": {
    "libraries": [
      {
        "name": "My Library",
        "folders": [
          {
            "folders": [],
            "documents": [
              {
                "name": "Building Mobile Apps Curriculum (INTERNAL).docx",
                "id": "642793"
              },
              {
                "name": "output (6).docx",
                "id": "642860"
              },
              {
                "name": "settings.gradle",
                "id": "648325"
              }
            ]
          },
          {
            "folders": [],
            "documents": []
          },
          {
            "folders": [],
            "documents": []
          },
          {
            "folders": [],
            "documents": []
          },
          {
            "folders": [
              {
                "name": "121",
                "id": "108602"
              }
            ],
            "documents": []
          }
        ]
      }
    ]
  },
  "extensions": {
    "logs": [
      "https://app.sharebase.com/sharebaseapi/api/libraries",
      "https://app.sharebase.com/sharebaseapi/api/libraries/2473/folders",
      "https://app.sharebase.com/sharebaseapi/api/folders/90553?embed=f,d",
      "https://app.sharebase.com/sharebaseapi/api/folders/95516?embed=f,d",
      "https://app.sharebase.com/sharebaseapi/api/folders/101633?embed=f,d",
      "https://app.sharebase.com/sharebaseapi/api/folders/101634?embed=f,d",
      "https://app.sharebase.com/sharebaseapi/api/folders/108601?embed=f,d"
    ],
    "duration": "701ms"
  }
}

The extensions object shows information about the duration and the requests made to the official ShareBase API to fulfill the query.

Check out the examples to see how you can use nice-sharebase in your own projects.

About

A wrapper around the ShareBase API to help it be more awesome.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published