# 86. Interogare: Obține „Farms”

Următoarele prezintă interogarea GraphQL de bază utilizată pentru a prelua toate "Fermele" accesibile utilizatorului:

{% code overflow="wrap" lineNumbers="true" %}

```graphql
interogare FetchAllFarms {
  getFarms {
    uuid
    userUuid
    nume
    farmOwnership
    externalKey
    ownerEmail
    dataCrearii
    updatedDate
  }
}
```

{% endcode %}

În plus față de alți parametri, puteți folosi `farmUuids` și `externalKeys` filtre pentru a personaliza răspunsul. Aceste filtre pot fi aplicate independent sau în combinație, permițând o recuperare a datelor mai țintită.

{% code overflow="wrap" lineNumbers="true" %}

```graphql
interogare FetchAllFarmsWithFilters {
  getFarms(
    farmUuids:["<placeholder_of_farm_uuid>"], 
    externalKeys:["<placeholder_of_external_key>"]
  ) {
    uuid
    userUuid
    nume
    farmOwnership
    externalKey
    ownerEmail
    dataCrearii
    updatedDate
  }
}
```

{% endcode %}


---

# 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.geopard.tech/geopard-tutorials/ro/documentatia-api/prezentarea-generala-a-solicitarilor-api-geopard/86.-interogare-obtine-farms.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.
