GraphQL API - Overview

Your data is 100% accessible and explorable though our GraphQL API, in fact, it’s what powers the Mbaasy App Publisher Console.

To begin exploring the data we recommend using our GraphQL User Interface where you will find complete documentation for the GraphQL schema and an interface where you can try out your queries.

For programmatic access, please familiarize yourself with Authentication & Programmatic Access.

GraphQL UI

Example - Querying subscriptions

This query will return the first 25 subscriptions. The filter argument offers many options for fine tuning your results and is what powers the filters on the Mbaasy App Publisher Console > Apps > [App] > Purchases page.

query {
  appFamily(
    field: LOGIN_AND_NAME
    value: "[ORG_LOGIN]/[APP_FAMILY_NAME]"
  ) {
    inAppPurchasesFeed(
      filter: {
        purchaseType: SUBSCRIPTION
      }
      sort: CREATED_AT_ASC
      first: 25
    ) {
      pageInfo {
        endCursor
        hasNextPage
      }
      edges {
        node {
          userIdentifier
          productId
          currentPeriod {
            min {
              iso8601
            }
            max {
              iso8601
            }
          }
        }
      }
    }
  }
}

Further Reading

Getting started with GraphQL is easy and there are some great tutorials and resources to get started with: