> For the complete documentation index, see [llms.txt](https://docs.geopard.tech/geopard-tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geopard.tech/geopard-tutorials/ltu/api-dokumentacija/pagrindiniu-srautu-schemos/2.-graphql-prenumerata.md).

# 2. GraphQL prenumerata

Sekos diagrama, skirta GraphQL prenumeratoriams, iliustruoja, kaip pasinaudoti įvykių varoma architektūra, įdiegta GeoPard branduolyje. Kai tik susijusiuose objektuose įvyksta kokie nors pakeitimai,

GeoPard API nedelsdama išsiunčia įvykį, fiksuojantį paveiktus objektus ir atitinkamą operaciją (`ĮTERPTI`, `PAKEISTI`, `PAŠALINTI`). Šių prenumeratų apimtis yra plati — apima visus objektus, pavyzdžiui, Ūkis (Farm), Laukas (Field), PalydovinėNuotrauka (SatelliteImage), DirvožemioDuomenųRinkinys (SoilDataset), TaikomasDuomenųRinkinys (AsAppliedDataset), DerliausDuomenųRinkinys (YieldDataset), TopografijosŽemėlapis (TopographyMap), Pastabos (Notes) ir kt.&#x20;

GraphQL prenumerata ([Užklausa 1 arba R1](/geopard-tutorials/ltu/api-dokumentacija/geopard-api-uzklausu-apzvalga/1.-prenumerata-gauti-ivykius.md)) veikia per WebSocket, kuriuo visi įvykiai perduodami beveik realiu laiku, užtikrinant nedelsiamą bet kokių pakeitimų pranešimą.&#x20;

{% hint style="danger" %}
Prenumeratos įvykių gavėjas turėtų veikti kaip bazinė paslauga, atsakinga už gautų įvykių maršrutizavimą į tolimesnę paslaugą, kurioje taikoma apdorojimo logika. Svarbu, kad šis gavėjas pats neatliktų jokio apdorojimo.
{% endhint %}

Be to, jei kokie nors įvykiai būtų praleisti arba prarasti, vartotojai gali juos atkurti. Tai atliekama vykdant GraphQL užklausą, pritaikytą konkrečiam datų intervalui ir objektams (Vartotojas, Ūkis, Laukas), efektyviai leidžiant visiškai atkurti praeitus įvykius ([Užklausa 2 arba R2](/geopard-tutorials/ltu/api-dokumentacija/geopard-api-uzklausu-apzvalga/82.-uzklausa-atkurti-prenumeratos-ivykius.md)). Toks funkcionalumas užtikrina, kad jokia informacija nebūtų prarasta, išlaikant vartotojo duomenų vientisumą ir nuoseklumą.

<figure><img src="https://570611445-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2F8YoTw2Od4ykqav13zGp4%2Fimage.png?alt=media&amp;token=f9ba66ec-8172-40c6-a3b6-36fc0ecbb24b" alt=""><figcaption><p>Sekos diagrama: Darbas su prenumeratos įvykiais</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.geopard.tech/geopard-tutorials/ltu/api-dokumentacija/pagrindiniu-srautu-schemos/2.-graphql-prenumerata.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
