diff --git a/crates/sui-graphql-rpc/examples/event_connection/event_connection.graphql b/crates/sui-graphql-rpc/examples/event_connection/event_connection.graphql index 5a9f5bae4d8f8..6fb683c37e5f4 100644 --- a/crates/sui-graphql-rpc/examples/event_connection/event_connection.graphql +++ b/crates/sui-graphql-rpc/examples/event_connection/event_connection.graphql @@ -9,15 +9,17 @@ name package { digest } } - type { - repr - } sender { address } timestamp - json + contents { + type { + repr + } + json + } bcs } } -} +} \ No newline at end of file diff --git a/crates/sui-graphql-rpc/examples/event_connection/filter_by_emitting_package_module_and_event_type.graphql b/crates/sui-graphql-rpc/examples/event_connection/filter_by_emitting_package_module_and_event_type.graphql deleted file mode 100644 index b1df6c65f06cc..0000000000000 --- a/crates/sui-graphql-rpc/examples/event_connection/filter_by_emitting_package_module_and_event_type.graphql +++ /dev/null @@ -1,29 +0,0 @@ -query ByEmittingPackageModuleAndEventType { - events( - first: 1 - after: "eyJ0eCI6Njc2MywiZSI6MCwiYyI6MjI4MDA3NDJ9" - filter: { - emittingModule: "0x3::sui_system", - eventType: "0x3::validator::StakingRequestEvent" - } - ) { - pageInfo { - hasNextPage - endCursor - } - nodes { - sendingModule { - name - } - type { - repr - } - sender { - address - } - timestamp - json - bcs - } - } -} diff --git a/crates/sui-graphql-rpc/examples/event_connection/filter_by_sender.graphql b/crates/sui-graphql-rpc/examples/event_connection/filter_by_sender.graphql index 7ba8047037532..72d97b9248dc4 100644 --- a/crates/sui-graphql-rpc/examples/event_connection/filter_by_sender.graphql +++ b/crates/sui-graphql-rpc/examples/event_connection/filter_by_sender.graphql @@ -13,14 +13,16 @@ query ByTxSender { sendingModule { name } - type { - repr + contents { + type { + repr + } + json } sender { address } timestamp - json bcs } } diff --git a/docs/content/guides/developer/sui-101/using-events.mdx b/docs/content/guides/developer/sui-101/using-events.mdx index c2b5c1887d573..dce9ac24efbc2 100644 --- a/docs/content/guides/developer/sui-101/using-events.mdx +++ b/docs/content/guides/developer/sui-101/using-events.mdx @@ -311,13 +311,6 @@ Filter events by sender {@inject: crates/sui-graphql-rpc/examples/event_connection/filter_by_sender.graphql} -
- -Filter events by emitting package and type - -{@inject: crates/sui-graphql-rpc/examples/event_connection/filter_by_emitting_package_module_and_event_type.graphql} -
- The [TypeScript SDK](https://sdk.mystenlabs.com/typedoc/modules/_mysten_sui.graphql.html) provides functionality to interact with the Sui GraphQL service. ## Monitoring events