---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# NowGraphQLService interface - Android

# NowGraphQLService interface - Android {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The NowGraphQLService interface provides functions that allow you to make GraphQL requests to your ServiceNow through its GraphQL API.  
Note:  
The GraphQL API works for guest users in the base ServiceNow system.

For more details on the ServiceNow
GraphQL API, see [Query record data using the GraphQL API framework](https://servicenow-prod.fluidtopics.net/2Q1cirFC~oyqNuLWkaEpyQ "Create a custom GraphQL API to query record data from a component or a third-party system.").
{#NowGQLServiceAndroidInterface__table_vx2_klw_5pb__entry__3}

| Name | Type | Description |
|-|-|-|
| configuration | [NowServiceConfiguration](https://servicenow-prod.fluidtopics.net/Csuh2Bp1F37gr9cX8Z4xFg "The NowServiceConfiguration class enables you to configure the ServiceNow instance URL and package name for a feature service.") | Configuration to associate with the service. |
[Table 1. Properties]

{#NowGQLServiceAndroidInterface__table_vx2_klw_5pb}

## NowGraphQLService - graphQLRequest(String query) {#ariaid-title2}

Passes the specified GraphQL query to the associated ServiceNow
instance and returns the query results.
{#NGQLServ-graphQLRequest_S__table_jrd_4bd_npb__entry__3}

| Name | Type | Description |
|-|-|-|
| query | String | GraphQL query to pass. |
[Table 2. Parameters]

{#NGQLServ-graphQLRequest_S__table_jrd_4bd_npb} {#NGQLServ-graphQLRequest_S__table_krd_4bd_npb__entry__2}

| Type | Description |
|-|-|
| [Call](https://servicenow-prod.fluidtopics.net/QqQzdE2jNcRyZ9uTF8c1wg#CallAndroidInterface "The Call interface represents a request that is prepared for processing.")\<[Byte Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/)\> | Query response. |
[Table 3. Returns]

{#NGQLServ-graphQLRequest_S__table_krd_4bd_npb}  
<br />

    fun makeGraphQLRequest(query: String) { 
      val call = graphQLService.graphQLRequest(query) 
      call.enqueue( 
        { response -> handleResponse(response) },
        { nowDataError -> handleError(nowDataError) } 
      )
    } 


