# searches (/sourcing/reference/queries/searches)

The workspace's searches, by latest message, newest first. A member's first visit to an empty workspace adds three example searches.

```graphql
searches(
  after: String
  archive: SearchArchive = ACTIVE
  before: String
  first: Int
  last: Int
  query: String
): SearchConnection!
```

### Arguments [#arguments]

#### [`searches.after`](#after) · [`String`](/sourcing/reference/scalars/string) `scalar` [#after]
Return the rows that follow this cursor.

#### [`searches.archive`](#archive) · [`SearchArchive`](/sourcing/reference/enums/search-archive) `enum` [#archive]
Which searches to list, by whether they are archived.

#### [`searches.before`](#before) · [`String`](/sourcing/reference/scalars/string) `scalar` [#before]
Return the rows that come before this cursor.

#### [`searches.first`](#first) · [`Int`](/sourcing/reference/scalars/int) `scalar` [#first]
How many rows to return, from the start or from `after`. 50 when left out, 200 at most.

#### [`searches.last`](#last) · [`Int`](/sourcing/reference/scalars/int) `scalar` [#last]
How many rows to return, counting back from the end or from `before`. 200 at most.

#### [`searches.query`](#query) · [`String`](/sourcing/reference/scalars/string) `scalar` [#query]
Only searches whose title, company, location or messages contain this text, in any case. 200 characters at most.

### Type [#type]

#### [`SearchConnection`](/sourcing/reference/objects/search-connection) `object` [#searchconnection-object]
A page of searches.