Create OneDrive Feed

Create OneDrive feed to ingest files.

Graphlit supports ingesting files from OneDrive.

The createFeed mutation enables the creation of a feed by accepting the feed name, type and site feed parameters and it returns essential details, including the ID, name, state, and type of the newly generated feed.

Graphlit requires the specific feed parameters including the OneDrive refreshToken.

Mutation:

mutation CreateFeed($feed: FeedInput!) {
  createFeed(feed: $feed) {
    id
    name
    state
    type
  }
}

Variables:

{
  "feed": {
    "type": "SITE",
    "site": {
      "type": "ONE_DRIVE",
      "oneDrive": {
        "refreshToken": "redacted"
      }
    },
    "name": "OneDrive Feed"
  }
}

Response:

{
  "type": "SITE",
  "id": "87ab925a-1d6e-4b86-94e1-eb2dc90d4b08",
  "name": "OneDrive Feed",
  "state": "ENABLED"
}

User Authentication

When using User authentication, you will need to authenticate your end-user via OAuth 2.0 and receive a refresh token for the end-user. Graphlit will use the refresh token to authenticate and enumerate files on OneDrive on your user's behalf.

Last updated