{
  "title": "How to Query the Rick and Morty GraphQL API",
  "slug": "query-rick-and-morty-gql-api",
  "collection": "blog",
  "contentType": "Blog post",
  "description": "Learn how to use a GraphQL API by querying the Rick and Morty GraphQL API with curl, the Fetch API, graphql-request, and Apollo Client",
  "summary": "Learn how to use a GraphQL API by querying the Rick and Morty GraphQL API with curl, the Fetch API, graphql-request, and Apollo Client",
  "author": {
    "name": "Anthony Campolo"
  },
  "source": {
    "originalUrl": "https://ajcwebdev.com/query-rick-and-morty-gql-api/"
  },
  "publishedAt": "2021-03-25T00:00:00.000Z",
  "updatedAt": null,
  "freshness": {
    "label": "Published",
    "value": "2021-03-25T00:00:00.000Z"
  },
  "urls": {
    "html": "https://ajcwebdev.com/query-rick-and-morty-gql-api/",
    "markdown": "https://ajcwebdev.com/query-rick-and-morty-gql-api/index.md",
    "json": "https://ajcwebdev.com/query-rick-and-morty-gql-api/index.json"
  },
  "headings": [
    {
      "depth": 2,
      "id": "introduction",
      "text": "Introduction"
    },
    {
      "depth": 2,
      "id": "query-with-graphiql",
      "text": "Query with GraphiQL"
    },
    {
      "depth": 2,
      "id": "query-with-curl",
      "text": "Query with CURL"
    },
    {
      "depth": 2,
      "id": "query-with-the-fetch-api",
      "text": "Query with the Fetch API"
    },
    {
      "depth": 3,
      "id": "create-project",
      "text": "Create Project"
    },
    {
      "depth": 3,
      "id": "html-entrypoint",
      "text": "HTML Entrypoint"
    },
    {
      "depth": 3,
      "id": "fetch-request",
      "text": "Fetch Request"
    },
    {
      "depth": 2,
      "id": "query-with-graphql-request",
      "text": "Query with GraphQL Request"
    },
    {
      "depth": 3,
      "id": "install-dependencies",
      "text": "Install Dependencies"
    },
    {
      "depth": 3,
      "id": "add-scripts-and-browsers-list",
      "text": "Add Scripts and Browsers List"
    },
    {
      "depth": 3,
      "id": "initialize-graphql-request-client",
      "text": "Initialize GraphQL Request Client"
    },
    {
      "depth": 2,
      "id": "query-with-apollo-client",
      "text": "Query with Apollo Client"
    },
    {
      "depth": 3,
      "id": "install-apollo-dependencies",
      "text": "Install Apollo Dependencies"
    },
    {
      "depth": 3,
      "id": "initialize-apollo-client",
      "text": "Initialize Apollo Client"
    }
  ],
  "tags": [
    "web",
    "graphql"
  ],
  "discovery": {
    "apiIndex": "https://ajcwebdev.com/api/index.json",
    "llmsTxt": "https://ajcwebdev.com/llms.txt",
    "llmsFullTxt": "https://ajcwebdev.com/llms-full.txt",
    "sitemapMd": "https://ajcwebdev.com/sitemap.md",
    "sitemapXml": "https://ajcwebdev.com/sitemap.xml"
  },
  "nextActions": [
    {
      "action": "open_html",
      "url": "https://ajcwebdev.com/query-rick-and-morty-gql-api/",
      "method": "GET",
      "accept": "text/html"
    },
    {
      "action": "get_markdown_twin",
      "url": "https://ajcwebdev.com/query-rick-and-morty-gql-api/index.md",
      "method": "GET",
      "accept": "text/markdown"
    },
    {
      "action": "get_json_twin",
      "url": "https://ajcwebdev.com/query-rick-and-morty-gql-api/index.json",
      "method": "GET",
      "accept": "application/json"
    }
  ]
}