Fumadocs

Search

QUERYsearch(term: String!): [SearchResult!]!

Search for customers and orders.

Arguments

term*String!

Returns

  1. search

A registered customer.

id*ID!
name*String!

The customer's full name.

email?StringDeprecated

The customer's email address.

Use contact instead.

contact?

Contact information of the customer.

orders*

Orders placed by this customer.

Search Store

Customers and orders matching a term, __typename tells them apart.

query SearchStore($term: String!) {
  search(term: $term) {
    __typename
    ... on Customer {
      id
      name
    }
    ... on Order {
      id
      total
      status
    }
  }
}
Variables
{
  "term": "ada"
}
Example Response
{
  "data": {
    "search": [
      {
        "__typename": "Customer",
        "id": "1",
        "name": "string"
      }
    ]
  }
}