# GraphQL

GraphQL is an API design architecture that takes a different, more flexible approach. The key difference between GraphQL vs REST is that GraphQL doesn’t deal with dedicated resources. Instead, everything is regarded as a graph implying it’s connected.

What this means in practical terms is that you can tailor your request to match your exact requirements using the GraphQL query language. In addition to this, it lets you combine different entities into a single query.

A GraphQL query for a movie listings app might look something like this:

```graphql
{
  characters {
    results {
      id
      name
      status
      species
      type
      gender
      origin {
        name
        id
      }
    }
  }
}
```

### 1. Add your GraphQl resource&#x20;

To connect GraphQL to JetAdmin, add a new resource from the settings and select GraphQL or select GraphQL as the resource when creating a new project.

![](/files/-MjZDXsEBzZTuXAkp_Zx)

Then, enter your API endpoint in the **Base URL** field. Base URL example:&#x20;

```
https://rickandmortyapi.com/graphql
```

![](/files/-MjZbpDoywpOsDY4ZDUX)

Depending on your API authentication settings, you may need to enter URL parameters or headers, or set the method via the [Authentication](/user-guide/integrations/rest-api.md) dropdown.

### 2. Make a request

You can display the results of GraphQL queries as with any other query in Jet Admin.

```graphql
{
  characters {
    results {
      id
      name
      status
      species
      type
      gender
      origin {
        name
        id
      }
    }
  }
}
```

![](/files/-MjZcE0VucAy7u9OULRO)

More information about HTTP Requests in our documentation.

{% content-ref url="/pages/-MAARNCnpjDL0xKCL8Pp" %}
[Making API requests](/user-guide/data/make-an-http-request.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jetadmin.io/user-guide/integrations/graphql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
