Skip to main content

Connect to App Services

Your final task is to call the GraphQL API you created from a web application.

Enable anonymous authentication

  1. Navigate to Authentication on the left side menu.

    Authentication tab on the side menu
  2. App Services offers a wide range of providers. For this application, you'll Allow users to log in anonymously. Select the option from the list and enable it.

  3. Click Save Draft, Review Draft & Deploy and then, Deploy.

CodeSandbox

CodeSandbox is an IDE, hosted in the cloud. Follow the instructions in the CodeSandbox below to integrate the App Services backend into the CodeSandbox-ed web application.

App Services credentials

You need APP_ID and GraphQL Endpoint to connect to App Services from the CodeSandbox-ed application.

  1. Navigate to GraphQL section from the left side menu.

    GraphQL tab on the side menu
  2. Copy the GraphQL endpoint, and add it to index.js file in the CodeSandbox.

    GraphQL endpoint highlighted on the GraphQL page
  3. Copy the APP ID using the copy button next to your app name on the left side menu and add it to the index.js file in the CodeSandbox.

    App ID copy button highlighted on the left side menu