How to Get Customer GraphQL Query Magento 2?

Customer GraphQL Query in Magento to retrieve basic information of the customer entity.

Using Customer Query, You can fetch the data of the logged-in customer by adding the customer access token as Headers.

schema.graphql file for the Customer module will be defined at, vendor/magento/module-customer-graph-ql/etc/schema.graphqls

Syntax:

Customer Object contains multiple attribute fields.

1.) Generate Customer Token and set it with Bearer value,
Authorization Bearer {CUSTOMER_TOKEN}

2) Customer GraphQL Query,

The output of the Customer GraphQL Query will be data of the specific customer.

If any attribute value will be null, the Response GraphQL value will be null otherwise display the specific value of the attribute.