From c64f8ff218f44b12e86492adf67ff2431ef6c91e Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Thu, 4 Jul 2024 10:33:48 +0530 Subject: [PATCH 01/14] feat: Implement Historical Backfill using Bitmap Indexer (#803) Replaces Delta Lake Stream with Bitmap Indexer Stream as the method for backfilling matching block heights before switching to real time processing. Bitmap Indexer resolves many issues the Delta Lake approach had: 1. Can be extended more easily. 2. Can be queried much faster thanks to storage in a database as well as in a compressed format. 3. Queries can be customized, enabling better matching. 4. Supports wildcard contract filters much better than the previous approach. 5. Is much harder to overload with too much data, which was a problem with the previous approach. --------- Co-authored-by: Morgan Mccauley --- .../darunrs_near/get_bitmaps_exact.graphql | 6 - .../darunrs_near/get_bitmaps_wildcard.graphql | 6 - .../graphql/darunrs_near/schema.graphql | 6178 ------- .../get_bitmaps_exact.graphql | 6 + .../get_bitmaps_wildcard.graphql | 6 + .../graphql/dataplatform_near/schema.graphql | 14065 ++++++++++++++++ block-streamer/src/block_stream.rs | 333 +- block-streamer/src/delta_lake_client.rs | 754 - block-streamer/src/graphql/client.rs | 29 +- block-streamer/src/main.rs | 15 +- .../src/{ => receiver_blocks}/bitmap.rs | 36 +- block-streamer/src/receiver_blocks/mod.rs | 4 + .../receiver_blocks_processor.rs} | 138 +- block-streamer/src/s3_client.rs | 89 - .../src/server/block_streamer_service.rs | 44 +- block-streamer/src/server/mod.rs | 9 +- block-streamer/src/test_utils.rs | 61 + 17 files changed, 14438 insertions(+), 7341 deletions(-) delete mode 100644 block-streamer/graphql/darunrs_near/get_bitmaps_exact.graphql delete mode 100644 block-streamer/graphql/darunrs_near/get_bitmaps_wildcard.graphql delete mode 100644 block-streamer/graphql/darunrs_near/schema.graphql create mode 100644 block-streamer/graphql/dataplatform_near/get_bitmaps_exact.graphql create mode 100644 block-streamer/graphql/dataplatform_near/get_bitmaps_wildcard.graphql create mode 100644 block-streamer/graphql/dataplatform_near/schema.graphql delete mode 100644 block-streamer/src/delta_lake_client.rs rename block-streamer/src/{ => receiver_blocks}/bitmap.rs (92%) create mode 100644 block-streamer/src/receiver_blocks/mod.rs rename block-streamer/src/{bitmap_processor.rs => receiver_blocks/receiver_blocks_processor.rs} (74%) diff --git a/block-streamer/graphql/darunrs_near/get_bitmaps_exact.graphql b/block-streamer/graphql/darunrs_near/get_bitmaps_exact.graphql deleted file mode 100644 index eb5c73b6e..000000000 --- a/block-streamer/graphql/darunrs_near/get_bitmaps_exact.graphql +++ /dev/null @@ -1,6 +0,0 @@ -query GetBitmapsExact($block_date: date, $receiver_ids: [String!], $limit: Int, $offset: Int) { - darunrs_near_bitmap_v5_actions_index(limit: $limit, offset: $offset, where: {block_date: {_eq: $block_date}, receiver: {receiver: {_in: $receiver_ids}}}) { - bitmap - first_block_height - } -} diff --git a/block-streamer/graphql/darunrs_near/get_bitmaps_wildcard.graphql b/block-streamer/graphql/darunrs_near/get_bitmaps_wildcard.graphql deleted file mode 100644 index d742d0556..000000000 --- a/block-streamer/graphql/darunrs_near/get_bitmaps_wildcard.graphql +++ /dev/null @@ -1,6 +0,0 @@ -query GetBitmapsWildcard($block_date: date, $receiver_ids: String, $limit: Int, $offset: Int) { - darunrs_near_bitmap_v5_actions_index(limit: $limit, offset: $offset, where: {block_date: {_eq: $block_date}, receiver: {receiver: {_regex: $receiver_ids}}}) { - bitmap - first_block_height - } -} diff --git a/block-streamer/graphql/darunrs_near/schema.graphql b/block-streamer/graphql/darunrs_near/schema.graphql deleted file mode 100644 index 4d27d2019..000000000 --- a/block-streamer/graphql/darunrs_near/schema.graphql +++ /dev/null @@ -1,6178 +0,0 @@ -schema { - query: query_root - mutation: mutation_root - subscription: subscription_root -} - -"""whether this query should be cached (Hasura Cloud only)""" -directive @cached( - """measured in seconds""" - ttl: Int! = 60 - - """refresh the cache entry""" - refresh: Boolean! = false -) on QUERY - -""" -Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. -""" -input Int_comparison_exp { - _eq: Int - _gt: Int - _gte: Int - _in: [Int!] - _is_null: Boolean - _lt: Int - _lte: Int - _neq: Int - _nin: [Int!] -} - -""" -Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. -""" -input String_comparison_exp { - _eq: String - _gt: String - _gte: String - - """does the column match the given case-insensitive pattern""" - _ilike: String - _in: [String!] - - """ - does the column match the given POSIX regular expression, case insensitive - """ - _iregex: String - _is_null: Boolean - - """does the column match the given pattern""" - _like: String - _lt: String - _lte: String - _neq: String - - """does the column NOT match the given case-insensitive pattern""" - _nilike: String - _nin: [String!] - - """ - does the column NOT match the given POSIX regular expression, case insensitive - """ - _niregex: String - - """does the column NOT match the given pattern""" - _nlike: String - - """ - does the column NOT match the given POSIX regular expression, case sensitive - """ - _nregex: String - - """does the column NOT match the given SQL regular expression""" - _nsimilar: String - - """ - does the column match the given POSIX regular expression, case sensitive - """ - _regex: String - - """does the column match the given SQL regular expression""" - _similar: String -} - -scalar bigint - -""" -Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. -""" -input bigint_comparison_exp { - _eq: bigint - _gt: bigint - _gte: bigint - _in: [bigint!] - _is_null: Boolean - _lt: bigint - _lte: bigint - _neq: bigint - _nin: [bigint!] -} - -"""ordering argument of a cursor""" -enum cursor_ordering { - """ascending ordering of the cursor""" - ASC - - """descending ordering of the cursor""" - DESC -} - -""" -columns and relationships of "darunrs_near_benchmark_indexer.indexer_storage" -""" -type darunrs_near_benchmark_indexer_indexer_storage { - function_name: String! - key_name: String! - value: String! -} - -""" -aggregated selection of "darunrs_near_benchmark_indexer.indexer_storage" -""" -type darunrs_near_benchmark_indexer_indexer_storage_aggregate { - aggregate: darunrs_near_benchmark_indexer_indexer_storage_aggregate_fields - nodes: [darunrs_near_benchmark_indexer_indexer_storage!]! -} - -""" -aggregate fields of "darunrs_near_benchmark_indexer.indexer_storage" -""" -type darunrs_near_benchmark_indexer_indexer_storage_aggregate_fields { - count(columns: [darunrs_near_benchmark_indexer_indexer_storage_select_column!], distinct: Boolean): Int! - max: darunrs_near_benchmark_indexer_indexer_storage_max_fields - min: darunrs_near_benchmark_indexer_indexer_storage_min_fields -} - -""" -Boolean expression to filter rows from the table "darunrs_near_benchmark_indexer.indexer_storage". All fields are combined with a logical 'AND'. -""" -input darunrs_near_benchmark_indexer_indexer_storage_bool_exp { - _and: [darunrs_near_benchmark_indexer_indexer_storage_bool_exp!] - _not: darunrs_near_benchmark_indexer_indexer_storage_bool_exp - _or: [darunrs_near_benchmark_indexer_indexer_storage_bool_exp!] - function_name: String_comparison_exp - key_name: String_comparison_exp - value: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_benchmark_indexer_indexer_storage_max_fields { - function_name: String - key_name: String - value: String -} - -"""aggregate min on columns""" -type darunrs_near_benchmark_indexer_indexer_storage_min_fields { - function_name: String - key_name: String - value: String -} - -""" -Ordering options when selecting data from "darunrs_near_benchmark_indexer.indexer_storage". -""" -input darunrs_near_benchmark_indexer_indexer_storage_order_by { - function_name: order_by - key_name: order_by - value: order_by -} - -""" -select columns of table "darunrs_near_benchmark_indexer.indexer_storage" -""" -enum darunrs_near_benchmark_indexer_indexer_storage_select_column { - """column name""" - function_name - - """column name""" - key_name - - """column name""" - value -} - -""" -Streaming cursor of the table "darunrs_near_benchmark_indexer_indexer_storage" -""" -input darunrs_near_benchmark_indexer_indexer_storage_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_benchmark_indexer_indexer_storage_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_benchmark_indexer_indexer_storage_stream_cursor_value_input { - function_name: String - key_name: String - value: String -} - -""" -columns and relationships of "darunrs_near_benchmark_indexer.sys_logs" -""" -type darunrs_near_benchmark_indexer_sys_logs { - block_height: numeric - date: date! - id: bigint! - level: String! - message: String! - timestamp: timestamp! - type: String! -} - -""" -aggregated selection of "darunrs_near_benchmark_indexer.sys_logs" -""" -type darunrs_near_benchmark_indexer_sys_logs_aggregate { - aggregate: darunrs_near_benchmark_indexer_sys_logs_aggregate_fields - nodes: [darunrs_near_benchmark_indexer_sys_logs!]! -} - -""" -aggregate fields of "darunrs_near_benchmark_indexer.sys_logs" -""" -type darunrs_near_benchmark_indexer_sys_logs_aggregate_fields { - avg: darunrs_near_benchmark_indexer_sys_logs_avg_fields - count(columns: [darunrs_near_benchmark_indexer_sys_logs_select_column!], distinct: Boolean): Int! - max: darunrs_near_benchmark_indexer_sys_logs_max_fields - min: darunrs_near_benchmark_indexer_sys_logs_min_fields - stddev: darunrs_near_benchmark_indexer_sys_logs_stddev_fields - stddev_pop: darunrs_near_benchmark_indexer_sys_logs_stddev_pop_fields - stddev_samp: darunrs_near_benchmark_indexer_sys_logs_stddev_samp_fields - sum: darunrs_near_benchmark_indexer_sys_logs_sum_fields - var_pop: darunrs_near_benchmark_indexer_sys_logs_var_pop_fields - var_samp: darunrs_near_benchmark_indexer_sys_logs_var_samp_fields - variance: darunrs_near_benchmark_indexer_sys_logs_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_benchmark_indexer_sys_logs_avg_fields { - block_height: Float - id: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_benchmark_indexer.sys_logs". All fields are combined with a logical 'AND'. -""" -input darunrs_near_benchmark_indexer_sys_logs_bool_exp { - _and: [darunrs_near_benchmark_indexer_sys_logs_bool_exp!] - _not: darunrs_near_benchmark_indexer_sys_logs_bool_exp - _or: [darunrs_near_benchmark_indexer_sys_logs_bool_exp!] - block_height: numeric_comparison_exp - date: date_comparison_exp - id: bigint_comparison_exp - level: String_comparison_exp - message: String_comparison_exp - timestamp: timestamp_comparison_exp - type: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_benchmark_indexer_sys_logs_max_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate min on columns""" -type darunrs_near_benchmark_indexer_sys_logs_min_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -""" -Ordering options when selecting data from "darunrs_near_benchmark_indexer.sys_logs". -""" -input darunrs_near_benchmark_indexer_sys_logs_order_by { - block_height: order_by - date: order_by - id: order_by - level: order_by - message: order_by - timestamp: order_by - type: order_by -} - -""" -select columns of table "darunrs_near_benchmark_indexer.sys_logs" -""" -enum darunrs_near_benchmark_indexer_sys_logs_select_column { - """column name""" - block_height - - """column name""" - date - - """column name""" - id - - """column name""" - level - - """column name""" - message - - """column name""" - timestamp - - """column name""" - type -} - -"""aggregate stddev on columns""" -type darunrs_near_benchmark_indexer_sys_logs_stddev_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_benchmark_indexer_sys_logs_stddev_pop_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_benchmark_indexer_sys_logs_stddev_samp_fields { - block_height: Float - id: Float -} - -""" -Streaming cursor of the table "darunrs_near_benchmark_indexer_sys_logs" -""" -input darunrs_near_benchmark_indexer_sys_logs_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_benchmark_indexer_sys_logs_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_benchmark_indexer_sys_logs_stream_cursor_value_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate sum on columns""" -type darunrs_near_benchmark_indexer_sys_logs_sum_fields { - block_height: numeric - id: bigint -} - -"""aggregate var_pop on columns""" -type darunrs_near_benchmark_indexer_sys_logs_var_pop_fields { - block_height: Float - id: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_benchmark_indexer_sys_logs_var_samp_fields { - block_height: Float - id: Float -} - -"""aggregate variance on columns""" -type darunrs_near_benchmark_indexer_sys_logs_variance_fields { - block_height: Float - id: Float -} - -""" -columns and relationships of "darunrs_near_benchmark_indexer.sys_metadata" -""" -type darunrs_near_benchmark_indexer_sys_metadata { - attribute: String! - value: String! -} - -""" -aggregated selection of "darunrs_near_benchmark_indexer.sys_metadata" -""" -type darunrs_near_benchmark_indexer_sys_metadata_aggregate { - aggregate: darunrs_near_benchmark_indexer_sys_metadata_aggregate_fields - nodes: [darunrs_near_benchmark_indexer_sys_metadata!]! -} - -""" -aggregate fields of "darunrs_near_benchmark_indexer.sys_metadata" -""" -type darunrs_near_benchmark_indexer_sys_metadata_aggregate_fields { - count(columns: [darunrs_near_benchmark_indexer_sys_metadata_select_column!], distinct: Boolean): Int! - max: darunrs_near_benchmark_indexer_sys_metadata_max_fields - min: darunrs_near_benchmark_indexer_sys_metadata_min_fields -} - -""" -Boolean expression to filter rows from the table "darunrs_near_benchmark_indexer.sys_metadata". All fields are combined with a logical 'AND'. -""" -input darunrs_near_benchmark_indexer_sys_metadata_bool_exp { - _and: [darunrs_near_benchmark_indexer_sys_metadata_bool_exp!] - _not: darunrs_near_benchmark_indexer_sys_metadata_bool_exp - _or: [darunrs_near_benchmark_indexer_sys_metadata_bool_exp!] - attribute: String_comparison_exp - value: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_benchmark_indexer_sys_metadata_max_fields { - attribute: String - value: String -} - -"""aggregate min on columns""" -type darunrs_near_benchmark_indexer_sys_metadata_min_fields { - attribute: String - value: String -} - -""" -Ordering options when selecting data from "darunrs_near_benchmark_indexer.sys_metadata". -""" -input darunrs_near_benchmark_indexer_sys_metadata_order_by { - attribute: order_by - value: order_by -} - -""" -select columns of table "darunrs_near_benchmark_indexer.sys_metadata" -""" -enum darunrs_near_benchmark_indexer_sys_metadata_select_column { - """column name""" - attribute - - """column name""" - value -} - -""" -Streaming cursor of the table "darunrs_near_benchmark_indexer_sys_metadata" -""" -input darunrs_near_benchmark_indexer_sys_metadata_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_benchmark_indexer_sys_metadata_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_benchmark_indexer_sys_metadata_stream_cursor_value_input { - attribute: String - value: String -} - -""" -columns and relationships of "darunrs_near_bitmap_v3.actions_index" -""" -type darunrs_near_bitmap_v3_actions_index { - bitmap: String! - block_date: String! - first_block_height: numeric! - last_elias_gamma_start_bit: numeric! - max_index: numeric! - receiver_id: String! -} - -""" -aggregated selection of "darunrs_near_bitmap_v3.actions_index" -""" -type darunrs_near_bitmap_v3_actions_index_aggregate { - aggregate: darunrs_near_bitmap_v3_actions_index_aggregate_fields - nodes: [darunrs_near_bitmap_v3_actions_index!]! -} - -""" -aggregate fields of "darunrs_near_bitmap_v3.actions_index" -""" -type darunrs_near_bitmap_v3_actions_index_aggregate_fields { - avg: darunrs_near_bitmap_v3_actions_index_avg_fields - count(columns: [darunrs_near_bitmap_v3_actions_index_select_column!], distinct: Boolean): Int! - max: darunrs_near_bitmap_v3_actions_index_max_fields - min: darunrs_near_bitmap_v3_actions_index_min_fields - stddev: darunrs_near_bitmap_v3_actions_index_stddev_fields - stddev_pop: darunrs_near_bitmap_v3_actions_index_stddev_pop_fields - stddev_samp: darunrs_near_bitmap_v3_actions_index_stddev_samp_fields - sum: darunrs_near_bitmap_v3_actions_index_sum_fields - var_pop: darunrs_near_bitmap_v3_actions_index_var_pop_fields - var_samp: darunrs_near_bitmap_v3_actions_index_var_samp_fields - variance: darunrs_near_bitmap_v3_actions_index_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_bitmap_v3_actions_index_avg_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_bitmap_v3.actions_index". All fields are combined with a logical 'AND'. -""" -input darunrs_near_bitmap_v3_actions_index_bool_exp { - _and: [darunrs_near_bitmap_v3_actions_index_bool_exp!] - _not: darunrs_near_bitmap_v3_actions_index_bool_exp - _or: [darunrs_near_bitmap_v3_actions_index_bool_exp!] - bitmap: String_comparison_exp - block_date: String_comparison_exp - first_block_height: numeric_comparison_exp - last_elias_gamma_start_bit: numeric_comparison_exp - max_index: numeric_comparison_exp - receiver_id: String_comparison_exp -} - -""" -unique or primary key constraints on table "darunrs_near_bitmap_v3.actions_index" -""" -enum darunrs_near_bitmap_v3_actions_index_constraint { - """ - unique or primary key constraint on columns "receiver_id", "block_date" - """ - actions_index_pkey -} - -""" -input type for incrementing numeric columns in table "darunrs_near_bitmap_v3.actions_index" -""" -input darunrs_near_bitmap_v3_actions_index_inc_input { - first_block_height: numeric - last_elias_gamma_start_bit: numeric - max_index: numeric -} - -""" -input type for inserting data into table "darunrs_near_bitmap_v3.actions_index" -""" -input darunrs_near_bitmap_v3_actions_index_insert_input { - bitmap: String - block_date: String - first_block_height: numeric - last_elias_gamma_start_bit: numeric - max_index: numeric - receiver_id: String -} - -"""aggregate max on columns""" -type darunrs_near_bitmap_v3_actions_index_max_fields { - bitmap: String - block_date: String - first_block_height: numeric - last_elias_gamma_start_bit: numeric - max_index: numeric - receiver_id: String -} - -"""aggregate min on columns""" -type darunrs_near_bitmap_v3_actions_index_min_fields { - bitmap: String - block_date: String - first_block_height: numeric - last_elias_gamma_start_bit: numeric - max_index: numeric - receiver_id: String -} - -""" -response of any mutation on the table "darunrs_near_bitmap_v3.actions_index" -""" -type darunrs_near_bitmap_v3_actions_index_mutation_response { - """number of rows affected by the mutation""" - affected_rows: Int! - - """data from the rows affected by the mutation""" - returning: [darunrs_near_bitmap_v3_actions_index!]! -} - -""" -on_conflict condition type for table "darunrs_near_bitmap_v3.actions_index" -""" -input darunrs_near_bitmap_v3_actions_index_on_conflict { - constraint: darunrs_near_bitmap_v3_actions_index_constraint! - update_columns: [darunrs_near_bitmap_v3_actions_index_update_column!]! = [] - where: darunrs_near_bitmap_v3_actions_index_bool_exp -} - -""" -Ordering options when selecting data from "darunrs_near_bitmap_v3.actions_index". -""" -input darunrs_near_bitmap_v3_actions_index_order_by { - bitmap: order_by - block_date: order_by - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -""" -primary key columns input for table: darunrs_near_bitmap_v3.actions_index -""" -input darunrs_near_bitmap_v3_actions_index_pk_columns_input { - block_date: String! - receiver_id: String! -} - -""" -select columns of table "darunrs_near_bitmap_v3.actions_index" -""" -enum darunrs_near_bitmap_v3_actions_index_select_column { - """column name""" - bitmap - - """column name""" - block_date - - """column name""" - first_block_height - - """column name""" - last_elias_gamma_start_bit - - """column name""" - max_index - - """column name""" - receiver_id -} - -""" -input type for updating data in table "darunrs_near_bitmap_v3.actions_index" -""" -input darunrs_near_bitmap_v3_actions_index_set_input { - bitmap: String - block_date: String - first_block_height: numeric - last_elias_gamma_start_bit: numeric - max_index: numeric - receiver_id: String -} - -"""aggregate stddev on columns""" -type darunrs_near_bitmap_v3_actions_index_stddev_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_bitmap_v3_actions_index_stddev_pop_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_bitmap_v3_actions_index_stddev_samp_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float -} - -""" -Streaming cursor of the table "darunrs_near_bitmap_v3_actions_index" -""" -input darunrs_near_bitmap_v3_actions_index_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_bitmap_v3_actions_index_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_bitmap_v3_actions_index_stream_cursor_value_input { - bitmap: String - block_date: String - first_block_height: numeric - last_elias_gamma_start_bit: numeric - max_index: numeric - receiver_id: String -} - -"""aggregate sum on columns""" -type darunrs_near_bitmap_v3_actions_index_sum_fields { - first_block_height: numeric - last_elias_gamma_start_bit: numeric - max_index: numeric -} - -""" -update columns of table "darunrs_near_bitmap_v3.actions_index" -""" -enum darunrs_near_bitmap_v3_actions_index_update_column { - """column name""" - bitmap - - """column name""" - block_date - - """column name""" - first_block_height - - """column name""" - last_elias_gamma_start_bit - - """column name""" - max_index - - """column name""" - receiver_id -} - -input darunrs_near_bitmap_v3_actions_index_updates { - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_bitmap_v3_actions_index_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_actions_index_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp! -} - -"""aggregate var_pop on columns""" -type darunrs_near_bitmap_v3_actions_index_var_pop_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_bitmap_v3_actions_index_var_samp_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float -} - -"""aggregate variance on columns""" -type darunrs_near_bitmap_v3_actions_index_variance_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float -} - -""" -columns and relationships of "darunrs_near_bitmap_v3.sys_logs" -""" -type darunrs_near_bitmap_v3_sys_logs { - block_height: numeric - date: date! - id: bigint! - level: String! - message: String! - timestamp: timestamp! - type: String! -} - -""" -aggregated selection of "darunrs_near_bitmap_v3.sys_logs" -""" -type darunrs_near_bitmap_v3_sys_logs_aggregate { - aggregate: darunrs_near_bitmap_v3_sys_logs_aggregate_fields - nodes: [darunrs_near_bitmap_v3_sys_logs!]! -} - -""" -aggregate fields of "darunrs_near_bitmap_v3.sys_logs" -""" -type darunrs_near_bitmap_v3_sys_logs_aggregate_fields { - avg: darunrs_near_bitmap_v3_sys_logs_avg_fields - count(columns: [darunrs_near_bitmap_v3_sys_logs_select_column!], distinct: Boolean): Int! - max: darunrs_near_bitmap_v3_sys_logs_max_fields - min: darunrs_near_bitmap_v3_sys_logs_min_fields - stddev: darunrs_near_bitmap_v3_sys_logs_stddev_fields - stddev_pop: darunrs_near_bitmap_v3_sys_logs_stddev_pop_fields - stddev_samp: darunrs_near_bitmap_v3_sys_logs_stddev_samp_fields - sum: darunrs_near_bitmap_v3_sys_logs_sum_fields - var_pop: darunrs_near_bitmap_v3_sys_logs_var_pop_fields - var_samp: darunrs_near_bitmap_v3_sys_logs_var_samp_fields - variance: darunrs_near_bitmap_v3_sys_logs_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_bitmap_v3_sys_logs_avg_fields { - block_height: Float - id: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_bitmap_v3.sys_logs". All fields are combined with a logical 'AND'. -""" -input darunrs_near_bitmap_v3_sys_logs_bool_exp { - _and: [darunrs_near_bitmap_v3_sys_logs_bool_exp!] - _not: darunrs_near_bitmap_v3_sys_logs_bool_exp - _or: [darunrs_near_bitmap_v3_sys_logs_bool_exp!] - block_height: numeric_comparison_exp - date: date_comparison_exp - id: bigint_comparison_exp - level: String_comparison_exp - message: String_comparison_exp - timestamp: timestamp_comparison_exp - type: String_comparison_exp -} - -""" -unique or primary key constraints on table "darunrs_near_bitmap_v3.sys_logs" -""" -enum darunrs_near_bitmap_v3_sys_logs_constraint { - """ - unique or primary key constraint on columns "id", "date" - """ - sys_logs_pkey -} - -""" -input type for incrementing numeric columns in table "darunrs_near_bitmap_v3.sys_logs" -""" -input darunrs_near_bitmap_v3_sys_logs_inc_input { - block_height: numeric - id: bigint -} - -""" -input type for inserting data into table "darunrs_near_bitmap_v3.sys_logs" -""" -input darunrs_near_bitmap_v3_sys_logs_insert_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate max on columns""" -type darunrs_near_bitmap_v3_sys_logs_max_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate min on columns""" -type darunrs_near_bitmap_v3_sys_logs_min_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -""" -response of any mutation on the table "darunrs_near_bitmap_v3.sys_logs" -""" -type darunrs_near_bitmap_v3_sys_logs_mutation_response { - """number of rows affected by the mutation""" - affected_rows: Int! - - """data from the rows affected by the mutation""" - returning: [darunrs_near_bitmap_v3_sys_logs!]! -} - -""" -on_conflict condition type for table "darunrs_near_bitmap_v3.sys_logs" -""" -input darunrs_near_bitmap_v3_sys_logs_on_conflict { - constraint: darunrs_near_bitmap_v3_sys_logs_constraint! - update_columns: [darunrs_near_bitmap_v3_sys_logs_update_column!]! = [] - where: darunrs_near_bitmap_v3_sys_logs_bool_exp -} - -""" -Ordering options when selecting data from "darunrs_near_bitmap_v3.sys_logs". -""" -input darunrs_near_bitmap_v3_sys_logs_order_by { - block_height: order_by - date: order_by - id: order_by - level: order_by - message: order_by - timestamp: order_by - type: order_by -} - -"""primary key columns input for table: darunrs_near_bitmap_v3.sys_logs""" -input darunrs_near_bitmap_v3_sys_logs_pk_columns_input { - date: date! - id: bigint! -} - -""" -select columns of table "darunrs_near_bitmap_v3.sys_logs" -""" -enum darunrs_near_bitmap_v3_sys_logs_select_column { - """column name""" - block_height - - """column name""" - date - - """column name""" - id - - """column name""" - level - - """column name""" - message - - """column name""" - timestamp - - """column name""" - type -} - -""" -input type for updating data in table "darunrs_near_bitmap_v3.sys_logs" -""" -input darunrs_near_bitmap_v3_sys_logs_set_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate stddev on columns""" -type darunrs_near_bitmap_v3_sys_logs_stddev_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_bitmap_v3_sys_logs_stddev_pop_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_bitmap_v3_sys_logs_stddev_samp_fields { - block_height: Float - id: Float -} - -""" -Streaming cursor of the table "darunrs_near_bitmap_v3_sys_logs" -""" -input darunrs_near_bitmap_v3_sys_logs_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_bitmap_v3_sys_logs_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_bitmap_v3_sys_logs_stream_cursor_value_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate sum on columns""" -type darunrs_near_bitmap_v3_sys_logs_sum_fields { - block_height: numeric - id: bigint -} - -""" -update columns of table "darunrs_near_bitmap_v3.sys_logs" -""" -enum darunrs_near_bitmap_v3_sys_logs_update_column { - """column name""" - block_height - - """column name""" - date - - """column name""" - id - - """column name""" - level - - """column name""" - message - - """column name""" - timestamp - - """column name""" - type -} - -input darunrs_near_bitmap_v3_sys_logs_updates { - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_bitmap_v3_sys_logs_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_sys_logs_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp! -} - -"""aggregate var_pop on columns""" -type darunrs_near_bitmap_v3_sys_logs_var_pop_fields { - block_height: Float - id: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_bitmap_v3_sys_logs_var_samp_fields { - block_height: Float - id: Float -} - -"""aggregate variance on columns""" -type darunrs_near_bitmap_v3_sys_logs_variance_fields { - block_height: Float - id: Float -} - -""" -columns and relationships of "darunrs_near_bitmap_v3.sys_metadata" -""" -type darunrs_near_bitmap_v3_sys_metadata { - attribute: String! - value: String! -} - -""" -aggregated selection of "darunrs_near_bitmap_v3.sys_metadata" -""" -type darunrs_near_bitmap_v3_sys_metadata_aggregate { - aggregate: darunrs_near_bitmap_v3_sys_metadata_aggregate_fields - nodes: [darunrs_near_bitmap_v3_sys_metadata!]! -} - -""" -aggregate fields of "darunrs_near_bitmap_v3.sys_metadata" -""" -type darunrs_near_bitmap_v3_sys_metadata_aggregate_fields { - count(columns: [darunrs_near_bitmap_v3_sys_metadata_select_column!], distinct: Boolean): Int! - max: darunrs_near_bitmap_v3_sys_metadata_max_fields - min: darunrs_near_bitmap_v3_sys_metadata_min_fields -} - -""" -Boolean expression to filter rows from the table "darunrs_near_bitmap_v3.sys_metadata". All fields are combined with a logical 'AND'. -""" -input darunrs_near_bitmap_v3_sys_metadata_bool_exp { - _and: [darunrs_near_bitmap_v3_sys_metadata_bool_exp!] - _not: darunrs_near_bitmap_v3_sys_metadata_bool_exp - _or: [darunrs_near_bitmap_v3_sys_metadata_bool_exp!] - attribute: String_comparison_exp - value: String_comparison_exp -} - -""" -unique or primary key constraints on table "darunrs_near_bitmap_v3.sys_metadata" -""" -enum darunrs_near_bitmap_v3_sys_metadata_constraint { - """ - unique or primary key constraint on columns "attribute" - """ - sys_metadata_pkey -} - -""" -input type for inserting data into table "darunrs_near_bitmap_v3.sys_metadata" -""" -input darunrs_near_bitmap_v3_sys_metadata_insert_input { - attribute: String - value: String -} - -"""aggregate max on columns""" -type darunrs_near_bitmap_v3_sys_metadata_max_fields { - attribute: String - value: String -} - -"""aggregate min on columns""" -type darunrs_near_bitmap_v3_sys_metadata_min_fields { - attribute: String - value: String -} - -""" -response of any mutation on the table "darunrs_near_bitmap_v3.sys_metadata" -""" -type darunrs_near_bitmap_v3_sys_metadata_mutation_response { - """number of rows affected by the mutation""" - affected_rows: Int! - - """data from the rows affected by the mutation""" - returning: [darunrs_near_bitmap_v3_sys_metadata!]! -} - -""" -on_conflict condition type for table "darunrs_near_bitmap_v3.sys_metadata" -""" -input darunrs_near_bitmap_v3_sys_metadata_on_conflict { - constraint: darunrs_near_bitmap_v3_sys_metadata_constraint! - update_columns: [darunrs_near_bitmap_v3_sys_metadata_update_column!]! = [] - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp -} - -""" -Ordering options when selecting data from "darunrs_near_bitmap_v3.sys_metadata". -""" -input darunrs_near_bitmap_v3_sys_metadata_order_by { - attribute: order_by - value: order_by -} - -""" -primary key columns input for table: darunrs_near_bitmap_v3.sys_metadata -""" -input darunrs_near_bitmap_v3_sys_metadata_pk_columns_input { - attribute: String! -} - -""" -select columns of table "darunrs_near_bitmap_v3.sys_metadata" -""" -enum darunrs_near_bitmap_v3_sys_metadata_select_column { - """column name""" - attribute - - """column name""" - value -} - -""" -input type for updating data in table "darunrs_near_bitmap_v3.sys_metadata" -""" -input darunrs_near_bitmap_v3_sys_metadata_set_input { - attribute: String - value: String -} - -""" -Streaming cursor of the table "darunrs_near_bitmap_v3_sys_metadata" -""" -input darunrs_near_bitmap_v3_sys_metadata_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_bitmap_v3_sys_metadata_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_bitmap_v3_sys_metadata_stream_cursor_value_input { - attribute: String - value: String -} - -""" -update columns of table "darunrs_near_bitmap_v3.sys_metadata" -""" -enum darunrs_near_bitmap_v3_sys_metadata_update_column { - """column name""" - attribute - - """column name""" - value -} - -input darunrs_near_bitmap_v3_sys_metadata_updates { - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_sys_metadata_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp! -} - -""" -columns and relationships of "darunrs_near_bitmap_v5.actions_index" -""" -type darunrs_near_bitmap_v5_actions_index { - bitmap: String! - block_date: date! - first_block_height: Int! - last_elias_gamma_start_bit: Int! - max_index: Int! - - """An object relationship""" - receiver: darunrs_near_bitmap_v5_receivers! - receiver_id: bigint! -} - -""" -aggregated selection of "darunrs_near_bitmap_v5.actions_index" -""" -type darunrs_near_bitmap_v5_actions_index_aggregate { - aggregate: darunrs_near_bitmap_v5_actions_index_aggregate_fields - nodes: [darunrs_near_bitmap_v5_actions_index!]! -} - -input darunrs_near_bitmap_v5_actions_index_aggregate_bool_exp { - count: darunrs_near_bitmap_v5_actions_index_aggregate_bool_exp_count -} - -input darunrs_near_bitmap_v5_actions_index_aggregate_bool_exp_count { - arguments: [darunrs_near_bitmap_v5_actions_index_select_column!] - distinct: Boolean - filter: darunrs_near_bitmap_v5_actions_index_bool_exp - predicate: Int_comparison_exp! -} - -""" -aggregate fields of "darunrs_near_bitmap_v5.actions_index" -""" -type darunrs_near_bitmap_v5_actions_index_aggregate_fields { - avg: darunrs_near_bitmap_v5_actions_index_avg_fields - count(columns: [darunrs_near_bitmap_v5_actions_index_select_column!], distinct: Boolean): Int! - max: darunrs_near_bitmap_v5_actions_index_max_fields - min: darunrs_near_bitmap_v5_actions_index_min_fields - stddev: darunrs_near_bitmap_v5_actions_index_stddev_fields - stddev_pop: darunrs_near_bitmap_v5_actions_index_stddev_pop_fields - stddev_samp: darunrs_near_bitmap_v5_actions_index_stddev_samp_fields - sum: darunrs_near_bitmap_v5_actions_index_sum_fields - var_pop: darunrs_near_bitmap_v5_actions_index_var_pop_fields - var_samp: darunrs_near_bitmap_v5_actions_index_var_samp_fields - variance: darunrs_near_bitmap_v5_actions_index_variance_fields -} - -""" -order by aggregate values of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_aggregate_order_by { - avg: darunrs_near_bitmap_v5_actions_index_avg_order_by - count: order_by - max: darunrs_near_bitmap_v5_actions_index_max_order_by - min: darunrs_near_bitmap_v5_actions_index_min_order_by - stddev: darunrs_near_bitmap_v5_actions_index_stddev_order_by - stddev_pop: darunrs_near_bitmap_v5_actions_index_stddev_pop_order_by - stddev_samp: darunrs_near_bitmap_v5_actions_index_stddev_samp_order_by - sum: darunrs_near_bitmap_v5_actions_index_sum_order_by - var_pop: darunrs_near_bitmap_v5_actions_index_var_pop_order_by - var_samp: darunrs_near_bitmap_v5_actions_index_var_samp_order_by - variance: darunrs_near_bitmap_v5_actions_index_variance_order_by -} - -"""aggregate avg on columns""" -type darunrs_near_bitmap_v5_actions_index_avg_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float - receiver_id: Float -} - -""" -order by avg() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_avg_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -""" -Boolean expression to filter rows from the table "darunrs_near_bitmap_v5.actions_index". All fields are combined with a logical 'AND'. -""" -input darunrs_near_bitmap_v5_actions_index_bool_exp { - _and: [darunrs_near_bitmap_v5_actions_index_bool_exp!] - _not: darunrs_near_bitmap_v5_actions_index_bool_exp - _or: [darunrs_near_bitmap_v5_actions_index_bool_exp!] - bitmap: String_comparison_exp - block_date: date_comparison_exp - first_block_height: Int_comparison_exp - last_elias_gamma_start_bit: Int_comparison_exp - max_index: Int_comparison_exp - receiver: darunrs_near_bitmap_v5_receivers_bool_exp - receiver_id: bigint_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_bitmap_v5_actions_index_max_fields { - bitmap: String - block_date: date - first_block_height: Int - last_elias_gamma_start_bit: Int - max_index: Int - receiver_id: bigint -} - -""" -order by max() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_max_order_by { - bitmap: order_by - block_date: order_by - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -"""aggregate min on columns""" -type darunrs_near_bitmap_v5_actions_index_min_fields { - bitmap: String - block_date: date - first_block_height: Int - last_elias_gamma_start_bit: Int - max_index: Int - receiver_id: bigint -} - -""" -order by min() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_min_order_by { - bitmap: order_by - block_date: order_by - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -""" -Ordering options when selecting data from "darunrs_near_bitmap_v5.actions_index". -""" -input darunrs_near_bitmap_v5_actions_index_order_by { - bitmap: order_by - block_date: order_by - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver: darunrs_near_bitmap_v5_receivers_order_by - receiver_id: order_by -} - -""" -select columns of table "darunrs_near_bitmap_v5.actions_index" -""" -enum darunrs_near_bitmap_v5_actions_index_select_column { - """column name""" - bitmap - - """column name""" - block_date - - """column name""" - first_block_height - - """column name""" - last_elias_gamma_start_bit - - """column name""" - max_index - - """column name""" - receiver_id -} - -"""aggregate stddev on columns""" -type darunrs_near_bitmap_v5_actions_index_stddev_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float - receiver_id: Float -} - -""" -order by stddev() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_stddev_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_bitmap_v5_actions_index_stddev_pop_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float - receiver_id: Float -} - -""" -order by stddev_pop() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_stddev_pop_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_bitmap_v5_actions_index_stddev_samp_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float - receiver_id: Float -} - -""" -order by stddev_samp() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_stddev_samp_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -""" -Streaming cursor of the table "darunrs_near_bitmap_v5_actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_bitmap_v5_actions_index_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_bitmap_v5_actions_index_stream_cursor_value_input { - bitmap: String - block_date: date - first_block_height: Int - last_elias_gamma_start_bit: Int - max_index: Int - receiver_id: bigint -} - -"""aggregate sum on columns""" -type darunrs_near_bitmap_v5_actions_index_sum_fields { - first_block_height: Int - last_elias_gamma_start_bit: Int - max_index: Int - receiver_id: bigint -} - -""" -order by sum() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_sum_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -"""aggregate var_pop on columns""" -type darunrs_near_bitmap_v5_actions_index_var_pop_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float - receiver_id: Float -} - -""" -order by var_pop() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_var_pop_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -"""aggregate var_samp on columns""" -type darunrs_near_bitmap_v5_actions_index_var_samp_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float - receiver_id: Float -} - -""" -order by var_samp() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_var_samp_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -"""aggregate variance on columns""" -type darunrs_near_bitmap_v5_actions_index_variance_fields { - first_block_height: Float - last_elias_gamma_start_bit: Float - max_index: Float - receiver_id: Float -} - -""" -order by variance() on columns of table "darunrs_near_bitmap_v5.actions_index" -""" -input darunrs_near_bitmap_v5_actions_index_variance_order_by { - first_block_height: order_by - last_elias_gamma_start_bit: order_by - max_index: order_by - receiver_id: order_by -} - -""" -columns and relationships of "darunrs_near_bitmap_v5.receivers" -""" -type darunrs_near_bitmap_v5_receivers { - """An array relationship""" - actions_index( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_actions_index_bool_exp - ): [darunrs_near_bitmap_v5_actions_index!]! - - """An aggregate relationship""" - actions_index_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_actions_index_bool_exp - ): darunrs_near_bitmap_v5_actions_index_aggregate! - id: bigint! - receiver: String! -} - -""" -aggregated selection of "darunrs_near_bitmap_v5.receivers" -""" -type darunrs_near_bitmap_v5_receivers_aggregate { - aggregate: darunrs_near_bitmap_v5_receivers_aggregate_fields - nodes: [darunrs_near_bitmap_v5_receivers!]! -} - -""" -aggregate fields of "darunrs_near_bitmap_v5.receivers" -""" -type darunrs_near_bitmap_v5_receivers_aggregate_fields { - avg: darunrs_near_bitmap_v5_receivers_avg_fields - count(columns: [darunrs_near_bitmap_v5_receivers_select_column!], distinct: Boolean): Int! - max: darunrs_near_bitmap_v5_receivers_max_fields - min: darunrs_near_bitmap_v5_receivers_min_fields - stddev: darunrs_near_bitmap_v5_receivers_stddev_fields - stddev_pop: darunrs_near_bitmap_v5_receivers_stddev_pop_fields - stddev_samp: darunrs_near_bitmap_v5_receivers_stddev_samp_fields - sum: darunrs_near_bitmap_v5_receivers_sum_fields - var_pop: darunrs_near_bitmap_v5_receivers_var_pop_fields - var_samp: darunrs_near_bitmap_v5_receivers_var_samp_fields - variance: darunrs_near_bitmap_v5_receivers_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_bitmap_v5_receivers_avg_fields { - id: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_bitmap_v5.receivers". All fields are combined with a logical 'AND'. -""" -input darunrs_near_bitmap_v5_receivers_bool_exp { - _and: [darunrs_near_bitmap_v5_receivers_bool_exp!] - _not: darunrs_near_bitmap_v5_receivers_bool_exp - _or: [darunrs_near_bitmap_v5_receivers_bool_exp!] - actions_index: darunrs_near_bitmap_v5_actions_index_bool_exp - actions_index_aggregate: darunrs_near_bitmap_v5_actions_index_aggregate_bool_exp - id: bigint_comparison_exp - receiver: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_bitmap_v5_receivers_max_fields { - id: bigint - receiver: String -} - -"""aggregate min on columns""" -type darunrs_near_bitmap_v5_receivers_min_fields { - id: bigint - receiver: String -} - -""" -Ordering options when selecting data from "darunrs_near_bitmap_v5.receivers". -""" -input darunrs_near_bitmap_v5_receivers_order_by { - actions_index_aggregate: darunrs_near_bitmap_v5_actions_index_aggregate_order_by - id: order_by - receiver: order_by -} - -""" -select columns of table "darunrs_near_bitmap_v5.receivers" -""" -enum darunrs_near_bitmap_v5_receivers_select_column { - """column name""" - id - - """column name""" - receiver -} - -"""aggregate stddev on columns""" -type darunrs_near_bitmap_v5_receivers_stddev_fields { - id: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_bitmap_v5_receivers_stddev_pop_fields { - id: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_bitmap_v5_receivers_stddev_samp_fields { - id: Float -} - -""" -Streaming cursor of the table "darunrs_near_bitmap_v5_receivers" -""" -input darunrs_near_bitmap_v5_receivers_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_bitmap_v5_receivers_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_bitmap_v5_receivers_stream_cursor_value_input { - id: bigint - receiver: String -} - -"""aggregate sum on columns""" -type darunrs_near_bitmap_v5_receivers_sum_fields { - id: bigint -} - -"""aggregate var_pop on columns""" -type darunrs_near_bitmap_v5_receivers_var_pop_fields { - id: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_bitmap_v5_receivers_var_samp_fields { - id: Float -} - -"""aggregate variance on columns""" -type darunrs_near_bitmap_v5_receivers_variance_fields { - id: Float -} - -""" -columns and relationships of "darunrs_near_bitmap_v5.sys_logs" -""" -type darunrs_near_bitmap_v5_sys_logs { - block_height: numeric - date: date! - id: bigint! - level: String! - message: String! - timestamp: timestamp! - type: String! -} - -""" -aggregated selection of "darunrs_near_bitmap_v5.sys_logs" -""" -type darunrs_near_bitmap_v5_sys_logs_aggregate { - aggregate: darunrs_near_bitmap_v5_sys_logs_aggregate_fields - nodes: [darunrs_near_bitmap_v5_sys_logs!]! -} - -""" -aggregate fields of "darunrs_near_bitmap_v5.sys_logs" -""" -type darunrs_near_bitmap_v5_sys_logs_aggregate_fields { - avg: darunrs_near_bitmap_v5_sys_logs_avg_fields - count(columns: [darunrs_near_bitmap_v5_sys_logs_select_column!], distinct: Boolean): Int! - max: darunrs_near_bitmap_v5_sys_logs_max_fields - min: darunrs_near_bitmap_v5_sys_logs_min_fields - stddev: darunrs_near_bitmap_v5_sys_logs_stddev_fields - stddev_pop: darunrs_near_bitmap_v5_sys_logs_stddev_pop_fields - stddev_samp: darunrs_near_bitmap_v5_sys_logs_stddev_samp_fields - sum: darunrs_near_bitmap_v5_sys_logs_sum_fields - var_pop: darunrs_near_bitmap_v5_sys_logs_var_pop_fields - var_samp: darunrs_near_bitmap_v5_sys_logs_var_samp_fields - variance: darunrs_near_bitmap_v5_sys_logs_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_bitmap_v5_sys_logs_avg_fields { - block_height: Float - id: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_bitmap_v5.sys_logs". All fields are combined with a logical 'AND'. -""" -input darunrs_near_bitmap_v5_sys_logs_bool_exp { - _and: [darunrs_near_bitmap_v5_sys_logs_bool_exp!] - _not: darunrs_near_bitmap_v5_sys_logs_bool_exp - _or: [darunrs_near_bitmap_v5_sys_logs_bool_exp!] - block_height: numeric_comparison_exp - date: date_comparison_exp - id: bigint_comparison_exp - level: String_comparison_exp - message: String_comparison_exp - timestamp: timestamp_comparison_exp - type: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_bitmap_v5_sys_logs_max_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate min on columns""" -type darunrs_near_bitmap_v5_sys_logs_min_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -""" -Ordering options when selecting data from "darunrs_near_bitmap_v5.sys_logs". -""" -input darunrs_near_bitmap_v5_sys_logs_order_by { - block_height: order_by - date: order_by - id: order_by - level: order_by - message: order_by - timestamp: order_by - type: order_by -} - -""" -select columns of table "darunrs_near_bitmap_v5.sys_logs" -""" -enum darunrs_near_bitmap_v5_sys_logs_select_column { - """column name""" - block_height - - """column name""" - date - - """column name""" - id - - """column name""" - level - - """column name""" - message - - """column name""" - timestamp - - """column name""" - type -} - -"""aggregate stddev on columns""" -type darunrs_near_bitmap_v5_sys_logs_stddev_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_bitmap_v5_sys_logs_stddev_pop_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_bitmap_v5_sys_logs_stddev_samp_fields { - block_height: Float - id: Float -} - -""" -Streaming cursor of the table "darunrs_near_bitmap_v5_sys_logs" -""" -input darunrs_near_bitmap_v5_sys_logs_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_bitmap_v5_sys_logs_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_bitmap_v5_sys_logs_stream_cursor_value_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate sum on columns""" -type darunrs_near_bitmap_v5_sys_logs_sum_fields { - block_height: numeric - id: bigint -} - -"""aggregate var_pop on columns""" -type darunrs_near_bitmap_v5_sys_logs_var_pop_fields { - block_height: Float - id: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_bitmap_v5_sys_logs_var_samp_fields { - block_height: Float - id: Float -} - -"""aggregate variance on columns""" -type darunrs_near_bitmap_v5_sys_logs_variance_fields { - block_height: Float - id: Float -} - -""" -columns and relationships of "darunrs_near_bitmap_v5.sys_metadata" -""" -type darunrs_near_bitmap_v5_sys_metadata { - attribute: String! - value: String! -} - -""" -aggregated selection of "darunrs_near_bitmap_v5.sys_metadata" -""" -type darunrs_near_bitmap_v5_sys_metadata_aggregate { - aggregate: darunrs_near_bitmap_v5_sys_metadata_aggregate_fields - nodes: [darunrs_near_bitmap_v5_sys_metadata!]! -} - -""" -aggregate fields of "darunrs_near_bitmap_v5.sys_metadata" -""" -type darunrs_near_bitmap_v5_sys_metadata_aggregate_fields { - count(columns: [darunrs_near_bitmap_v5_sys_metadata_select_column!], distinct: Boolean): Int! - max: darunrs_near_bitmap_v5_sys_metadata_max_fields - min: darunrs_near_bitmap_v5_sys_metadata_min_fields -} - -""" -Boolean expression to filter rows from the table "darunrs_near_bitmap_v5.sys_metadata". All fields are combined with a logical 'AND'. -""" -input darunrs_near_bitmap_v5_sys_metadata_bool_exp { - _and: [darunrs_near_bitmap_v5_sys_metadata_bool_exp!] - _not: darunrs_near_bitmap_v5_sys_metadata_bool_exp - _or: [darunrs_near_bitmap_v5_sys_metadata_bool_exp!] - attribute: String_comparison_exp - value: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_bitmap_v5_sys_metadata_max_fields { - attribute: String - value: String -} - -"""aggregate min on columns""" -type darunrs_near_bitmap_v5_sys_metadata_min_fields { - attribute: String - value: String -} - -""" -Ordering options when selecting data from "darunrs_near_bitmap_v5.sys_metadata". -""" -input darunrs_near_bitmap_v5_sys_metadata_order_by { - attribute: order_by - value: order_by -} - -""" -select columns of table "darunrs_near_bitmap_v5.sys_metadata" -""" -enum darunrs_near_bitmap_v5_sys_metadata_select_column { - """column name""" - attribute - - """column name""" - value -} - -""" -Streaming cursor of the table "darunrs_near_bitmap_v5_sys_metadata" -""" -input darunrs_near_bitmap_v5_sys_metadata_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_bitmap_v5_sys_metadata_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_bitmap_v5_sys_metadata_stream_cursor_value_input { - attribute: String - value: String -} - -""" -columns and relationships of "darunrs_near_social_feed_test.comments" -""" -type darunrs_near_social_feed_test_comments { - account_id: String! - block_height: numeric! - block_timestamp: numeric! - content: String! - id: Int! - - """An object relationship""" - post: darunrs_near_social_feed_test_posts! - post_id: Int! - receipt_id: String! -} - -""" -aggregated selection of "darunrs_near_social_feed_test.comments" -""" -type darunrs_near_social_feed_test_comments_aggregate { - aggregate: darunrs_near_social_feed_test_comments_aggregate_fields - nodes: [darunrs_near_social_feed_test_comments!]! -} - -input darunrs_near_social_feed_test_comments_aggregate_bool_exp { - count: darunrs_near_social_feed_test_comments_aggregate_bool_exp_count -} - -input darunrs_near_social_feed_test_comments_aggregate_bool_exp_count { - arguments: [darunrs_near_social_feed_test_comments_select_column!] - distinct: Boolean - filter: darunrs_near_social_feed_test_comments_bool_exp - predicate: Int_comparison_exp! -} - -""" -aggregate fields of "darunrs_near_social_feed_test.comments" -""" -type darunrs_near_social_feed_test_comments_aggregate_fields { - avg: darunrs_near_social_feed_test_comments_avg_fields - count(columns: [darunrs_near_social_feed_test_comments_select_column!], distinct: Boolean): Int! - max: darunrs_near_social_feed_test_comments_max_fields - min: darunrs_near_social_feed_test_comments_min_fields - stddev: darunrs_near_social_feed_test_comments_stddev_fields - stddev_pop: darunrs_near_social_feed_test_comments_stddev_pop_fields - stddev_samp: darunrs_near_social_feed_test_comments_stddev_samp_fields - sum: darunrs_near_social_feed_test_comments_sum_fields - var_pop: darunrs_near_social_feed_test_comments_var_pop_fields - var_samp: darunrs_near_social_feed_test_comments_var_samp_fields - variance: darunrs_near_social_feed_test_comments_variance_fields -} - -""" -order by aggregate values of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_aggregate_order_by { - avg: darunrs_near_social_feed_test_comments_avg_order_by - count: order_by - max: darunrs_near_social_feed_test_comments_max_order_by - min: darunrs_near_social_feed_test_comments_min_order_by - stddev: darunrs_near_social_feed_test_comments_stddev_order_by - stddev_pop: darunrs_near_social_feed_test_comments_stddev_pop_order_by - stddev_samp: darunrs_near_social_feed_test_comments_stddev_samp_order_by - sum: darunrs_near_social_feed_test_comments_sum_order_by - var_pop: darunrs_near_social_feed_test_comments_var_pop_order_by - var_samp: darunrs_near_social_feed_test_comments_var_samp_order_by - variance: darunrs_near_social_feed_test_comments_variance_order_by -} - -"""aggregate avg on columns""" -type darunrs_near_social_feed_test_comments_avg_fields { - block_height: Float - block_timestamp: Float - id: Float - post_id: Float -} - -""" -order by avg() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_avg_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -""" -Boolean expression to filter rows from the table "darunrs_near_social_feed_test.comments". All fields are combined with a logical 'AND'. -""" -input darunrs_near_social_feed_test_comments_bool_exp { - _and: [darunrs_near_social_feed_test_comments_bool_exp!] - _not: darunrs_near_social_feed_test_comments_bool_exp - _or: [darunrs_near_social_feed_test_comments_bool_exp!] - account_id: String_comparison_exp - block_height: numeric_comparison_exp - block_timestamp: numeric_comparison_exp - content: String_comparison_exp - id: Int_comparison_exp - post: darunrs_near_social_feed_test_posts_bool_exp - post_id: Int_comparison_exp - receipt_id: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_social_feed_test_comments_max_fields { - account_id: String - block_height: numeric - block_timestamp: numeric - content: String - id: Int - post_id: Int - receipt_id: String -} - -""" -order by max() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_max_order_by { - account_id: order_by - block_height: order_by - block_timestamp: order_by - content: order_by - id: order_by - post_id: order_by - receipt_id: order_by -} - -"""aggregate min on columns""" -type darunrs_near_social_feed_test_comments_min_fields { - account_id: String - block_height: numeric - block_timestamp: numeric - content: String - id: Int - post_id: Int - receipt_id: String -} - -""" -order by min() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_min_order_by { - account_id: order_by - block_height: order_by - block_timestamp: order_by - content: order_by - id: order_by - post_id: order_by - receipt_id: order_by -} - -""" -Ordering options when selecting data from "darunrs_near_social_feed_test.comments". -""" -input darunrs_near_social_feed_test_comments_order_by { - account_id: order_by - block_height: order_by - block_timestamp: order_by - content: order_by - id: order_by - post: darunrs_near_social_feed_test_posts_order_by - post_id: order_by - receipt_id: order_by -} - -""" -select columns of table "darunrs_near_social_feed_test.comments" -""" -enum darunrs_near_social_feed_test_comments_select_column { - """column name""" - account_id - - """column name""" - block_height - - """column name""" - block_timestamp - - """column name""" - content - - """column name""" - id - - """column name""" - post_id - - """column name""" - receipt_id -} - -"""aggregate stddev on columns""" -type darunrs_near_social_feed_test_comments_stddev_fields { - block_height: Float - block_timestamp: Float - id: Float - post_id: Float -} - -""" -order by stddev() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_stddev_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_social_feed_test_comments_stddev_pop_fields { - block_height: Float - block_timestamp: Float - id: Float - post_id: Float -} - -""" -order by stddev_pop() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_stddev_pop_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_social_feed_test_comments_stddev_samp_fields { - block_height: Float - block_timestamp: Float - id: Float - post_id: Float -} - -""" -order by stddev_samp() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_stddev_samp_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -""" -Streaming cursor of the table "darunrs_near_social_feed_test_comments" -""" -input darunrs_near_social_feed_test_comments_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_social_feed_test_comments_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_social_feed_test_comments_stream_cursor_value_input { - account_id: String - block_height: numeric - block_timestamp: numeric - content: String - id: Int - post_id: Int - receipt_id: String -} - -"""aggregate sum on columns""" -type darunrs_near_social_feed_test_comments_sum_fields { - block_height: numeric - block_timestamp: numeric - id: Int - post_id: Int -} - -""" -order by sum() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_sum_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -"""aggregate var_pop on columns""" -type darunrs_near_social_feed_test_comments_var_pop_fields { - block_height: Float - block_timestamp: Float - id: Float - post_id: Float -} - -""" -order by var_pop() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_var_pop_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -"""aggregate var_samp on columns""" -type darunrs_near_social_feed_test_comments_var_samp_fields { - block_height: Float - block_timestamp: Float - id: Float - post_id: Float -} - -""" -order by var_samp() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_var_samp_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -"""aggregate variance on columns""" -type darunrs_near_social_feed_test_comments_variance_fields { - block_height: Float - block_timestamp: Float - id: Float - post_id: Float -} - -""" -order by variance() on columns of table "darunrs_near_social_feed_test.comments" -""" -input darunrs_near_social_feed_test_comments_variance_order_by { - block_height: order_by - block_timestamp: order_by - id: order_by - post_id: order_by -} - -""" -columns and relationships of "darunrs_near_social_feed_test.post_likes" -""" -type darunrs_near_social_feed_test_post_likes { - account_id: String! - block_height: numeric - block_timestamp: numeric! - - """An object relationship""" - post: darunrs_near_social_feed_test_posts! - post_id: Int! - receipt_id: String! -} - -""" -aggregated selection of "darunrs_near_social_feed_test.post_likes" -""" -type darunrs_near_social_feed_test_post_likes_aggregate { - aggregate: darunrs_near_social_feed_test_post_likes_aggregate_fields - nodes: [darunrs_near_social_feed_test_post_likes!]! -} - -input darunrs_near_social_feed_test_post_likes_aggregate_bool_exp { - count: darunrs_near_social_feed_test_post_likes_aggregate_bool_exp_count -} - -input darunrs_near_social_feed_test_post_likes_aggregate_bool_exp_count { - arguments: [darunrs_near_social_feed_test_post_likes_select_column!] - distinct: Boolean - filter: darunrs_near_social_feed_test_post_likes_bool_exp - predicate: Int_comparison_exp! -} - -""" -aggregate fields of "darunrs_near_social_feed_test.post_likes" -""" -type darunrs_near_social_feed_test_post_likes_aggregate_fields { - avg: darunrs_near_social_feed_test_post_likes_avg_fields - count(columns: [darunrs_near_social_feed_test_post_likes_select_column!], distinct: Boolean): Int! - max: darunrs_near_social_feed_test_post_likes_max_fields - min: darunrs_near_social_feed_test_post_likes_min_fields - stddev: darunrs_near_social_feed_test_post_likes_stddev_fields - stddev_pop: darunrs_near_social_feed_test_post_likes_stddev_pop_fields - stddev_samp: darunrs_near_social_feed_test_post_likes_stddev_samp_fields - sum: darunrs_near_social_feed_test_post_likes_sum_fields - var_pop: darunrs_near_social_feed_test_post_likes_var_pop_fields - var_samp: darunrs_near_social_feed_test_post_likes_var_samp_fields - variance: darunrs_near_social_feed_test_post_likes_variance_fields -} - -""" -order by aggregate values of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_aggregate_order_by { - avg: darunrs_near_social_feed_test_post_likes_avg_order_by - count: order_by - max: darunrs_near_social_feed_test_post_likes_max_order_by - min: darunrs_near_social_feed_test_post_likes_min_order_by - stddev: darunrs_near_social_feed_test_post_likes_stddev_order_by - stddev_pop: darunrs_near_social_feed_test_post_likes_stddev_pop_order_by - stddev_samp: darunrs_near_social_feed_test_post_likes_stddev_samp_order_by - sum: darunrs_near_social_feed_test_post_likes_sum_order_by - var_pop: darunrs_near_social_feed_test_post_likes_var_pop_order_by - var_samp: darunrs_near_social_feed_test_post_likes_var_samp_order_by - variance: darunrs_near_social_feed_test_post_likes_variance_order_by -} - -"""aggregate avg on columns""" -type darunrs_near_social_feed_test_post_likes_avg_fields { - block_height: Float - block_timestamp: Float - post_id: Float -} - -""" -order by avg() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_avg_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -""" -Boolean expression to filter rows from the table "darunrs_near_social_feed_test.post_likes". All fields are combined with a logical 'AND'. -""" -input darunrs_near_social_feed_test_post_likes_bool_exp { - _and: [darunrs_near_social_feed_test_post_likes_bool_exp!] - _not: darunrs_near_social_feed_test_post_likes_bool_exp - _or: [darunrs_near_social_feed_test_post_likes_bool_exp!] - account_id: String_comparison_exp - block_height: numeric_comparison_exp - block_timestamp: numeric_comparison_exp - post: darunrs_near_social_feed_test_posts_bool_exp - post_id: Int_comparison_exp - receipt_id: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_social_feed_test_post_likes_max_fields { - account_id: String - block_height: numeric - block_timestamp: numeric - post_id: Int - receipt_id: String -} - -""" -order by max() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_max_order_by { - account_id: order_by - block_height: order_by - block_timestamp: order_by - post_id: order_by - receipt_id: order_by -} - -"""aggregate min on columns""" -type darunrs_near_social_feed_test_post_likes_min_fields { - account_id: String - block_height: numeric - block_timestamp: numeric - post_id: Int - receipt_id: String -} - -""" -order by min() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_min_order_by { - account_id: order_by - block_height: order_by - block_timestamp: order_by - post_id: order_by - receipt_id: order_by -} - -""" -Ordering options when selecting data from "darunrs_near_social_feed_test.post_likes". -""" -input darunrs_near_social_feed_test_post_likes_order_by { - account_id: order_by - block_height: order_by - block_timestamp: order_by - post: darunrs_near_social_feed_test_posts_order_by - post_id: order_by - receipt_id: order_by -} - -""" -select columns of table "darunrs_near_social_feed_test.post_likes" -""" -enum darunrs_near_social_feed_test_post_likes_select_column { - """column name""" - account_id - - """column name""" - block_height - - """column name""" - block_timestamp - - """column name""" - post_id - - """column name""" - receipt_id -} - -"""aggregate stddev on columns""" -type darunrs_near_social_feed_test_post_likes_stddev_fields { - block_height: Float - block_timestamp: Float - post_id: Float -} - -""" -order by stddev() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_stddev_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_social_feed_test_post_likes_stddev_pop_fields { - block_height: Float - block_timestamp: Float - post_id: Float -} - -""" -order by stddev_pop() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_stddev_pop_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_social_feed_test_post_likes_stddev_samp_fields { - block_height: Float - block_timestamp: Float - post_id: Float -} - -""" -order by stddev_samp() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_stddev_samp_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -""" -Streaming cursor of the table "darunrs_near_social_feed_test_post_likes" -""" -input darunrs_near_social_feed_test_post_likes_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_social_feed_test_post_likes_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_social_feed_test_post_likes_stream_cursor_value_input { - account_id: String - block_height: numeric - block_timestamp: numeric - post_id: Int - receipt_id: String -} - -"""aggregate sum on columns""" -type darunrs_near_social_feed_test_post_likes_sum_fields { - block_height: numeric - block_timestamp: numeric - post_id: Int -} - -""" -order by sum() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_sum_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -"""aggregate var_pop on columns""" -type darunrs_near_social_feed_test_post_likes_var_pop_fields { - block_height: Float - block_timestamp: Float - post_id: Float -} - -""" -order by var_pop() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_var_pop_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -"""aggregate var_samp on columns""" -type darunrs_near_social_feed_test_post_likes_var_samp_fields { - block_height: Float - block_timestamp: Float - post_id: Float -} - -""" -order by var_samp() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_var_samp_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -"""aggregate variance on columns""" -type darunrs_near_social_feed_test_post_likes_variance_fields { - block_height: Float - block_timestamp: Float - post_id: Float -} - -""" -order by variance() on columns of table "darunrs_near_social_feed_test.post_likes" -""" -input darunrs_near_social_feed_test_post_likes_variance_order_by { - block_height: order_by - block_timestamp: order_by - post_id: order_by -} - -""" -columns and relationships of "darunrs_near_social_feed_test.posts" -""" -type darunrs_near_social_feed_test_posts { - account_id: String! - accounts_liked( - """JSON select path""" - path: String - ): jsonb! - block_height: numeric! - block_timestamp: numeric! - - """An array relationship""" - comments( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_comments_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_comments_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_comments_bool_exp - ): [darunrs_near_social_feed_test_comments!]! - - """An aggregate relationship""" - comments_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_comments_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_comments_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_comments_bool_exp - ): darunrs_near_social_feed_test_comments_aggregate! - content: String! - id: Int! - last_comment_timestamp: numeric - - """An array relationship""" - post_likes( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_post_likes_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_post_likes_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_post_likes_bool_exp - ): [darunrs_near_social_feed_test_post_likes!]! - - """An aggregate relationship""" - post_likes_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_post_likes_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_post_likes_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_post_likes_bool_exp - ): darunrs_near_social_feed_test_post_likes_aggregate! - receipt_id: String! -} - -""" -aggregated selection of "darunrs_near_social_feed_test.posts" -""" -type darunrs_near_social_feed_test_posts_aggregate { - aggregate: darunrs_near_social_feed_test_posts_aggregate_fields - nodes: [darunrs_near_social_feed_test_posts!]! -} - -""" -aggregate fields of "darunrs_near_social_feed_test.posts" -""" -type darunrs_near_social_feed_test_posts_aggregate_fields { - avg: darunrs_near_social_feed_test_posts_avg_fields - count(columns: [darunrs_near_social_feed_test_posts_select_column!], distinct: Boolean): Int! - max: darunrs_near_social_feed_test_posts_max_fields - min: darunrs_near_social_feed_test_posts_min_fields - stddev: darunrs_near_social_feed_test_posts_stddev_fields - stddev_pop: darunrs_near_social_feed_test_posts_stddev_pop_fields - stddev_samp: darunrs_near_social_feed_test_posts_stddev_samp_fields - sum: darunrs_near_social_feed_test_posts_sum_fields - var_pop: darunrs_near_social_feed_test_posts_var_pop_fields - var_samp: darunrs_near_social_feed_test_posts_var_samp_fields - variance: darunrs_near_social_feed_test_posts_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_social_feed_test_posts_avg_fields { - block_height: Float - block_timestamp: Float - id: Float - last_comment_timestamp: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_social_feed_test.posts". All fields are combined with a logical 'AND'. -""" -input darunrs_near_social_feed_test_posts_bool_exp { - _and: [darunrs_near_social_feed_test_posts_bool_exp!] - _not: darunrs_near_social_feed_test_posts_bool_exp - _or: [darunrs_near_social_feed_test_posts_bool_exp!] - account_id: String_comparison_exp - accounts_liked: jsonb_comparison_exp - block_height: numeric_comparison_exp - block_timestamp: numeric_comparison_exp - comments: darunrs_near_social_feed_test_comments_bool_exp - comments_aggregate: darunrs_near_social_feed_test_comments_aggregate_bool_exp - content: String_comparison_exp - id: Int_comparison_exp - last_comment_timestamp: numeric_comparison_exp - post_likes: darunrs_near_social_feed_test_post_likes_bool_exp - post_likes_aggregate: darunrs_near_social_feed_test_post_likes_aggregate_bool_exp - receipt_id: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_social_feed_test_posts_max_fields { - account_id: String - block_height: numeric - block_timestamp: numeric - content: String - id: Int - last_comment_timestamp: numeric - receipt_id: String -} - -"""aggregate min on columns""" -type darunrs_near_social_feed_test_posts_min_fields { - account_id: String - block_height: numeric - block_timestamp: numeric - content: String - id: Int - last_comment_timestamp: numeric - receipt_id: String -} - -""" -Ordering options when selecting data from "darunrs_near_social_feed_test.posts". -""" -input darunrs_near_social_feed_test_posts_order_by { - account_id: order_by - accounts_liked: order_by - block_height: order_by - block_timestamp: order_by - comments_aggregate: darunrs_near_social_feed_test_comments_aggregate_order_by - content: order_by - id: order_by - last_comment_timestamp: order_by - post_likes_aggregate: darunrs_near_social_feed_test_post_likes_aggregate_order_by - receipt_id: order_by -} - -""" -select columns of table "darunrs_near_social_feed_test.posts" -""" -enum darunrs_near_social_feed_test_posts_select_column { - """column name""" - account_id - - """column name""" - accounts_liked - - """column name""" - block_height - - """column name""" - block_timestamp - - """column name""" - content - - """column name""" - id - - """column name""" - last_comment_timestamp - - """column name""" - receipt_id -} - -"""aggregate stddev on columns""" -type darunrs_near_social_feed_test_posts_stddev_fields { - block_height: Float - block_timestamp: Float - id: Float - last_comment_timestamp: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_social_feed_test_posts_stddev_pop_fields { - block_height: Float - block_timestamp: Float - id: Float - last_comment_timestamp: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_social_feed_test_posts_stddev_samp_fields { - block_height: Float - block_timestamp: Float - id: Float - last_comment_timestamp: Float -} - -""" -Streaming cursor of the table "darunrs_near_social_feed_test_posts" -""" -input darunrs_near_social_feed_test_posts_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_social_feed_test_posts_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_social_feed_test_posts_stream_cursor_value_input { - account_id: String - accounts_liked: jsonb - block_height: numeric - block_timestamp: numeric - content: String - id: Int - last_comment_timestamp: numeric - receipt_id: String -} - -"""aggregate sum on columns""" -type darunrs_near_social_feed_test_posts_sum_fields { - block_height: numeric - block_timestamp: numeric - id: Int - last_comment_timestamp: numeric -} - -"""aggregate var_pop on columns""" -type darunrs_near_social_feed_test_posts_var_pop_fields { - block_height: Float - block_timestamp: Float - id: Float - last_comment_timestamp: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_social_feed_test_posts_var_samp_fields { - block_height: Float - block_timestamp: Float - id: Float - last_comment_timestamp: Float -} - -"""aggregate variance on columns""" -type darunrs_near_social_feed_test_posts_variance_fields { - block_height: Float - block_timestamp: Float - id: Float - last_comment_timestamp: Float -} - -""" -columns and relationships of "darunrs_near_social_feed_test.sys_logs" -""" -type darunrs_near_social_feed_test_sys_logs { - block_height: numeric - date: date! - id: bigint! - level: String! - message: String! - timestamp: timestamp! - type: String! -} - -""" -aggregated selection of "darunrs_near_social_feed_test.sys_logs" -""" -type darunrs_near_social_feed_test_sys_logs_aggregate { - aggregate: darunrs_near_social_feed_test_sys_logs_aggregate_fields - nodes: [darunrs_near_social_feed_test_sys_logs!]! -} - -""" -aggregate fields of "darunrs_near_social_feed_test.sys_logs" -""" -type darunrs_near_social_feed_test_sys_logs_aggregate_fields { - avg: darunrs_near_social_feed_test_sys_logs_avg_fields - count(columns: [darunrs_near_social_feed_test_sys_logs_select_column!], distinct: Boolean): Int! - max: darunrs_near_social_feed_test_sys_logs_max_fields - min: darunrs_near_social_feed_test_sys_logs_min_fields - stddev: darunrs_near_social_feed_test_sys_logs_stddev_fields - stddev_pop: darunrs_near_social_feed_test_sys_logs_stddev_pop_fields - stddev_samp: darunrs_near_social_feed_test_sys_logs_stddev_samp_fields - sum: darunrs_near_social_feed_test_sys_logs_sum_fields - var_pop: darunrs_near_social_feed_test_sys_logs_var_pop_fields - var_samp: darunrs_near_social_feed_test_sys_logs_var_samp_fields - variance: darunrs_near_social_feed_test_sys_logs_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_social_feed_test_sys_logs_avg_fields { - block_height: Float - id: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_social_feed_test.sys_logs". All fields are combined with a logical 'AND'. -""" -input darunrs_near_social_feed_test_sys_logs_bool_exp { - _and: [darunrs_near_social_feed_test_sys_logs_bool_exp!] - _not: darunrs_near_social_feed_test_sys_logs_bool_exp - _or: [darunrs_near_social_feed_test_sys_logs_bool_exp!] - block_height: numeric_comparison_exp - date: date_comparison_exp - id: bigint_comparison_exp - level: String_comparison_exp - message: String_comparison_exp - timestamp: timestamp_comparison_exp - type: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_social_feed_test_sys_logs_max_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate min on columns""" -type darunrs_near_social_feed_test_sys_logs_min_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -""" -Ordering options when selecting data from "darunrs_near_social_feed_test.sys_logs". -""" -input darunrs_near_social_feed_test_sys_logs_order_by { - block_height: order_by - date: order_by - id: order_by - level: order_by - message: order_by - timestamp: order_by - type: order_by -} - -""" -select columns of table "darunrs_near_social_feed_test.sys_logs" -""" -enum darunrs_near_social_feed_test_sys_logs_select_column { - """column name""" - block_height - - """column name""" - date - - """column name""" - id - - """column name""" - level - - """column name""" - message - - """column name""" - timestamp - - """column name""" - type -} - -"""aggregate stddev on columns""" -type darunrs_near_social_feed_test_sys_logs_stddev_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_social_feed_test_sys_logs_stddev_pop_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_social_feed_test_sys_logs_stddev_samp_fields { - block_height: Float - id: Float -} - -""" -Streaming cursor of the table "darunrs_near_social_feed_test_sys_logs" -""" -input darunrs_near_social_feed_test_sys_logs_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_social_feed_test_sys_logs_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_social_feed_test_sys_logs_stream_cursor_value_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate sum on columns""" -type darunrs_near_social_feed_test_sys_logs_sum_fields { - block_height: numeric - id: bigint -} - -"""aggregate var_pop on columns""" -type darunrs_near_social_feed_test_sys_logs_var_pop_fields { - block_height: Float - id: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_social_feed_test_sys_logs_var_samp_fields { - block_height: Float - id: Float -} - -"""aggregate variance on columns""" -type darunrs_near_social_feed_test_sys_logs_variance_fields { - block_height: Float - id: Float -} - -""" -columns and relationships of "darunrs_near_social_feed_test.sys_metadata" -""" -type darunrs_near_social_feed_test_sys_metadata { - attribute: String! - value: String! -} - -""" -aggregated selection of "darunrs_near_social_feed_test.sys_metadata" -""" -type darunrs_near_social_feed_test_sys_metadata_aggregate { - aggregate: darunrs_near_social_feed_test_sys_metadata_aggregate_fields - nodes: [darunrs_near_social_feed_test_sys_metadata!]! -} - -""" -aggregate fields of "darunrs_near_social_feed_test.sys_metadata" -""" -type darunrs_near_social_feed_test_sys_metadata_aggregate_fields { - count(columns: [darunrs_near_social_feed_test_sys_metadata_select_column!], distinct: Boolean): Int! - max: darunrs_near_social_feed_test_sys_metadata_max_fields - min: darunrs_near_social_feed_test_sys_metadata_min_fields -} - -""" -Boolean expression to filter rows from the table "darunrs_near_social_feed_test.sys_metadata". All fields are combined with a logical 'AND'. -""" -input darunrs_near_social_feed_test_sys_metadata_bool_exp { - _and: [darunrs_near_social_feed_test_sys_metadata_bool_exp!] - _not: darunrs_near_social_feed_test_sys_metadata_bool_exp - _or: [darunrs_near_social_feed_test_sys_metadata_bool_exp!] - attribute: String_comparison_exp - value: String_comparison_exp -} - -"""aggregate max on columns""" -type darunrs_near_social_feed_test_sys_metadata_max_fields { - attribute: String - value: String -} - -"""aggregate min on columns""" -type darunrs_near_social_feed_test_sys_metadata_min_fields { - attribute: String - value: String -} - -""" -Ordering options when selecting data from "darunrs_near_social_feed_test.sys_metadata". -""" -input darunrs_near_social_feed_test_sys_metadata_order_by { - attribute: order_by - value: order_by -} - -""" -select columns of table "darunrs_near_social_feed_test.sys_metadata" -""" -enum darunrs_near_social_feed_test_sys_metadata_select_column { - """column name""" - attribute - - """column name""" - value -} - -""" -Streaming cursor of the table "darunrs_near_social_feed_test_sys_metadata" -""" -input darunrs_near_social_feed_test_sys_metadata_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_social_feed_test_sys_metadata_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_social_feed_test_sys_metadata_stream_cursor_value_input { - attribute: String - value: String -} - -""" -columns and relationships of "darunrs_near_test_fork.indexer_storage" -""" -type darunrs_near_test_fork_indexer_storage { - function_name: String! - key_name: String! - value: String! -} - -""" -aggregated selection of "darunrs_near_test_fork.indexer_storage" -""" -type darunrs_near_test_fork_indexer_storage_aggregate { - aggregate: darunrs_near_test_fork_indexer_storage_aggregate_fields - nodes: [darunrs_near_test_fork_indexer_storage!]! -} - -""" -aggregate fields of "darunrs_near_test_fork.indexer_storage" -""" -type darunrs_near_test_fork_indexer_storage_aggregate_fields { - count(columns: [darunrs_near_test_fork_indexer_storage_select_column!], distinct: Boolean): Int! - max: darunrs_near_test_fork_indexer_storage_max_fields - min: darunrs_near_test_fork_indexer_storage_min_fields -} - -""" -Boolean expression to filter rows from the table "darunrs_near_test_fork.indexer_storage". All fields are combined with a logical 'AND'. -""" -input darunrs_near_test_fork_indexer_storage_bool_exp { - _and: [darunrs_near_test_fork_indexer_storage_bool_exp!] - _not: darunrs_near_test_fork_indexer_storage_bool_exp - _or: [darunrs_near_test_fork_indexer_storage_bool_exp!] - function_name: String_comparison_exp - key_name: String_comparison_exp - value: String_comparison_exp -} - -""" -unique or primary key constraints on table "darunrs_near_test_fork.indexer_storage" -""" -enum darunrs_near_test_fork_indexer_storage_constraint { - """ - unique or primary key constraint on columns "function_name", "key_name" - """ - indexer_storage_pkey -} - -""" -input type for inserting data into table "darunrs_near_test_fork.indexer_storage" -""" -input darunrs_near_test_fork_indexer_storage_insert_input { - function_name: String - key_name: String - value: String -} - -"""aggregate max on columns""" -type darunrs_near_test_fork_indexer_storage_max_fields { - function_name: String - key_name: String - value: String -} - -"""aggregate min on columns""" -type darunrs_near_test_fork_indexer_storage_min_fields { - function_name: String - key_name: String - value: String -} - -""" -response of any mutation on the table "darunrs_near_test_fork.indexer_storage" -""" -type darunrs_near_test_fork_indexer_storage_mutation_response { - """number of rows affected by the mutation""" - affected_rows: Int! - - """data from the rows affected by the mutation""" - returning: [darunrs_near_test_fork_indexer_storage!]! -} - -""" -on_conflict condition type for table "darunrs_near_test_fork.indexer_storage" -""" -input darunrs_near_test_fork_indexer_storage_on_conflict { - constraint: darunrs_near_test_fork_indexer_storage_constraint! - update_columns: [darunrs_near_test_fork_indexer_storage_update_column!]! = [] - where: darunrs_near_test_fork_indexer_storage_bool_exp -} - -""" -Ordering options when selecting data from "darunrs_near_test_fork.indexer_storage". -""" -input darunrs_near_test_fork_indexer_storage_order_by { - function_name: order_by - key_name: order_by - value: order_by -} - -""" -primary key columns input for table: darunrs_near_test_fork.indexer_storage -""" -input darunrs_near_test_fork_indexer_storage_pk_columns_input { - function_name: String! - key_name: String! -} - -""" -select columns of table "darunrs_near_test_fork.indexer_storage" -""" -enum darunrs_near_test_fork_indexer_storage_select_column { - """column name""" - function_name - - """column name""" - key_name - - """column name""" - value -} - -""" -input type for updating data in table "darunrs_near_test_fork.indexer_storage" -""" -input darunrs_near_test_fork_indexer_storage_set_input { - function_name: String - key_name: String - value: String -} - -""" -Streaming cursor of the table "darunrs_near_test_fork_indexer_storage" -""" -input darunrs_near_test_fork_indexer_storage_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_test_fork_indexer_storage_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_test_fork_indexer_storage_stream_cursor_value_input { - function_name: String - key_name: String - value: String -} - -""" -update columns of table "darunrs_near_test_fork.indexer_storage" -""" -enum darunrs_near_test_fork_indexer_storage_update_column { - """column name""" - function_name - - """column name""" - key_name - - """column name""" - value -} - -input darunrs_near_test_fork_indexer_storage_updates { - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_indexer_storage_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_test_fork_indexer_storage_bool_exp! -} - -""" -columns and relationships of "darunrs_near_test_fork.sys_logs" -""" -type darunrs_near_test_fork_sys_logs { - block_height: numeric - date: date! - id: bigint! - level: String! - message: String! - timestamp: timestamp! - type: String! -} - -""" -aggregated selection of "darunrs_near_test_fork.sys_logs" -""" -type darunrs_near_test_fork_sys_logs_aggregate { - aggregate: darunrs_near_test_fork_sys_logs_aggregate_fields - nodes: [darunrs_near_test_fork_sys_logs!]! -} - -""" -aggregate fields of "darunrs_near_test_fork.sys_logs" -""" -type darunrs_near_test_fork_sys_logs_aggregate_fields { - avg: darunrs_near_test_fork_sys_logs_avg_fields - count(columns: [darunrs_near_test_fork_sys_logs_select_column!], distinct: Boolean): Int! - max: darunrs_near_test_fork_sys_logs_max_fields - min: darunrs_near_test_fork_sys_logs_min_fields - stddev: darunrs_near_test_fork_sys_logs_stddev_fields - stddev_pop: darunrs_near_test_fork_sys_logs_stddev_pop_fields - stddev_samp: darunrs_near_test_fork_sys_logs_stddev_samp_fields - sum: darunrs_near_test_fork_sys_logs_sum_fields - var_pop: darunrs_near_test_fork_sys_logs_var_pop_fields - var_samp: darunrs_near_test_fork_sys_logs_var_samp_fields - variance: darunrs_near_test_fork_sys_logs_variance_fields -} - -"""aggregate avg on columns""" -type darunrs_near_test_fork_sys_logs_avg_fields { - block_height: Float - id: Float -} - -""" -Boolean expression to filter rows from the table "darunrs_near_test_fork.sys_logs". All fields are combined with a logical 'AND'. -""" -input darunrs_near_test_fork_sys_logs_bool_exp { - _and: [darunrs_near_test_fork_sys_logs_bool_exp!] - _not: darunrs_near_test_fork_sys_logs_bool_exp - _or: [darunrs_near_test_fork_sys_logs_bool_exp!] - block_height: numeric_comparison_exp - date: date_comparison_exp - id: bigint_comparison_exp - level: String_comparison_exp - message: String_comparison_exp - timestamp: timestamp_comparison_exp - type: String_comparison_exp -} - -""" -unique or primary key constraints on table "darunrs_near_test_fork.sys_logs" -""" -enum darunrs_near_test_fork_sys_logs_constraint { - """ - unique or primary key constraint on columns "id", "date" - """ - sys_logs_pkey -} - -""" -input type for incrementing numeric columns in table "darunrs_near_test_fork.sys_logs" -""" -input darunrs_near_test_fork_sys_logs_inc_input { - block_height: numeric - id: bigint -} - -""" -input type for inserting data into table "darunrs_near_test_fork.sys_logs" -""" -input darunrs_near_test_fork_sys_logs_insert_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate max on columns""" -type darunrs_near_test_fork_sys_logs_max_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate min on columns""" -type darunrs_near_test_fork_sys_logs_min_fields { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -""" -response of any mutation on the table "darunrs_near_test_fork.sys_logs" -""" -type darunrs_near_test_fork_sys_logs_mutation_response { - """number of rows affected by the mutation""" - affected_rows: Int! - - """data from the rows affected by the mutation""" - returning: [darunrs_near_test_fork_sys_logs!]! -} - -""" -on_conflict condition type for table "darunrs_near_test_fork.sys_logs" -""" -input darunrs_near_test_fork_sys_logs_on_conflict { - constraint: darunrs_near_test_fork_sys_logs_constraint! - update_columns: [darunrs_near_test_fork_sys_logs_update_column!]! = [] - where: darunrs_near_test_fork_sys_logs_bool_exp -} - -""" -Ordering options when selecting data from "darunrs_near_test_fork.sys_logs". -""" -input darunrs_near_test_fork_sys_logs_order_by { - block_height: order_by - date: order_by - id: order_by - level: order_by - message: order_by - timestamp: order_by - type: order_by -} - -"""primary key columns input for table: darunrs_near_test_fork.sys_logs""" -input darunrs_near_test_fork_sys_logs_pk_columns_input { - date: date! - id: bigint! -} - -""" -select columns of table "darunrs_near_test_fork.sys_logs" -""" -enum darunrs_near_test_fork_sys_logs_select_column { - """column name""" - block_height - - """column name""" - date - - """column name""" - id - - """column name""" - level - - """column name""" - message - - """column name""" - timestamp - - """column name""" - type -} - -""" -input type for updating data in table "darunrs_near_test_fork.sys_logs" -""" -input darunrs_near_test_fork_sys_logs_set_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate stddev on columns""" -type darunrs_near_test_fork_sys_logs_stddev_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_pop on columns""" -type darunrs_near_test_fork_sys_logs_stddev_pop_fields { - block_height: Float - id: Float -} - -"""aggregate stddev_samp on columns""" -type darunrs_near_test_fork_sys_logs_stddev_samp_fields { - block_height: Float - id: Float -} - -""" -Streaming cursor of the table "darunrs_near_test_fork_sys_logs" -""" -input darunrs_near_test_fork_sys_logs_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_test_fork_sys_logs_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_test_fork_sys_logs_stream_cursor_value_input { - block_height: numeric - date: date - id: bigint - level: String - message: String - timestamp: timestamp - type: String -} - -"""aggregate sum on columns""" -type darunrs_near_test_fork_sys_logs_sum_fields { - block_height: numeric - id: bigint -} - -""" -update columns of table "darunrs_near_test_fork.sys_logs" -""" -enum darunrs_near_test_fork_sys_logs_update_column { - """column name""" - block_height - - """column name""" - date - - """column name""" - id - - """column name""" - level - - """column name""" - message - - """column name""" - timestamp - - """column name""" - type -} - -input darunrs_near_test_fork_sys_logs_updates { - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_test_fork_sys_logs_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_sys_logs_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_test_fork_sys_logs_bool_exp! -} - -"""aggregate var_pop on columns""" -type darunrs_near_test_fork_sys_logs_var_pop_fields { - block_height: Float - id: Float -} - -"""aggregate var_samp on columns""" -type darunrs_near_test_fork_sys_logs_var_samp_fields { - block_height: Float - id: Float -} - -"""aggregate variance on columns""" -type darunrs_near_test_fork_sys_logs_variance_fields { - block_height: Float - id: Float -} - -""" -columns and relationships of "darunrs_near_test_fork.sys_metadata" -""" -type darunrs_near_test_fork_sys_metadata { - attribute: String! - value: String! -} - -""" -aggregated selection of "darunrs_near_test_fork.sys_metadata" -""" -type darunrs_near_test_fork_sys_metadata_aggregate { - aggregate: darunrs_near_test_fork_sys_metadata_aggregate_fields - nodes: [darunrs_near_test_fork_sys_metadata!]! -} - -""" -aggregate fields of "darunrs_near_test_fork.sys_metadata" -""" -type darunrs_near_test_fork_sys_metadata_aggregate_fields { - count(columns: [darunrs_near_test_fork_sys_metadata_select_column!], distinct: Boolean): Int! - max: darunrs_near_test_fork_sys_metadata_max_fields - min: darunrs_near_test_fork_sys_metadata_min_fields -} - -""" -Boolean expression to filter rows from the table "darunrs_near_test_fork.sys_metadata". All fields are combined with a logical 'AND'. -""" -input darunrs_near_test_fork_sys_metadata_bool_exp { - _and: [darunrs_near_test_fork_sys_metadata_bool_exp!] - _not: darunrs_near_test_fork_sys_metadata_bool_exp - _or: [darunrs_near_test_fork_sys_metadata_bool_exp!] - attribute: String_comparison_exp - value: String_comparison_exp -} - -""" -unique or primary key constraints on table "darunrs_near_test_fork.sys_metadata" -""" -enum darunrs_near_test_fork_sys_metadata_constraint { - """ - unique or primary key constraint on columns "attribute" - """ - sys_metadata_pkey -} - -""" -input type for inserting data into table "darunrs_near_test_fork.sys_metadata" -""" -input darunrs_near_test_fork_sys_metadata_insert_input { - attribute: String - value: String -} - -"""aggregate max on columns""" -type darunrs_near_test_fork_sys_metadata_max_fields { - attribute: String - value: String -} - -"""aggregate min on columns""" -type darunrs_near_test_fork_sys_metadata_min_fields { - attribute: String - value: String -} - -""" -response of any mutation on the table "darunrs_near_test_fork.sys_metadata" -""" -type darunrs_near_test_fork_sys_metadata_mutation_response { - """number of rows affected by the mutation""" - affected_rows: Int! - - """data from the rows affected by the mutation""" - returning: [darunrs_near_test_fork_sys_metadata!]! -} - -""" -on_conflict condition type for table "darunrs_near_test_fork.sys_metadata" -""" -input darunrs_near_test_fork_sys_metadata_on_conflict { - constraint: darunrs_near_test_fork_sys_metadata_constraint! - update_columns: [darunrs_near_test_fork_sys_metadata_update_column!]! = [] - where: darunrs_near_test_fork_sys_metadata_bool_exp -} - -""" -Ordering options when selecting data from "darunrs_near_test_fork.sys_metadata". -""" -input darunrs_near_test_fork_sys_metadata_order_by { - attribute: order_by - value: order_by -} - -""" -primary key columns input for table: darunrs_near_test_fork.sys_metadata -""" -input darunrs_near_test_fork_sys_metadata_pk_columns_input { - attribute: String! -} - -""" -select columns of table "darunrs_near_test_fork.sys_metadata" -""" -enum darunrs_near_test_fork_sys_metadata_select_column { - """column name""" - attribute - - """column name""" - value -} - -""" -input type for updating data in table "darunrs_near_test_fork.sys_metadata" -""" -input darunrs_near_test_fork_sys_metadata_set_input { - attribute: String - value: String -} - -""" -Streaming cursor of the table "darunrs_near_test_fork_sys_metadata" -""" -input darunrs_near_test_fork_sys_metadata_stream_cursor_input { - """Stream column input with initial value""" - initial_value: darunrs_near_test_fork_sys_metadata_stream_cursor_value_input! - - """cursor ordering""" - ordering: cursor_ordering -} - -"""Initial value of the column from where the streaming should start""" -input darunrs_near_test_fork_sys_metadata_stream_cursor_value_input { - attribute: String - value: String -} - -""" -update columns of table "darunrs_near_test_fork.sys_metadata" -""" -enum darunrs_near_test_fork_sys_metadata_update_column { - """column name""" - attribute - - """column name""" - value -} - -input darunrs_near_test_fork_sys_metadata_updates { - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_sys_metadata_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_test_fork_sys_metadata_bool_exp! -} - -scalar date - -""" -Boolean expression to compare columns of type "date". All fields are combined with logical 'AND'. -""" -input date_comparison_exp { - _eq: date - _gt: date - _gte: date - _in: [date!] - _is_null: Boolean - _lt: date - _lte: date - _neq: date - _nin: [date!] -} - -scalar jsonb - -input jsonb_cast_exp { - String: String_comparison_exp -} - -""" -Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. -""" -input jsonb_comparison_exp { - _cast: jsonb_cast_exp - - """is the column contained in the given json value""" - _contained_in: jsonb - - """does the column contain the given json value at the top level""" - _contains: jsonb - _eq: jsonb - _gt: jsonb - _gte: jsonb - - """does the string exist as a top-level key in the column""" - _has_key: String - - """do all of these strings exist as top-level keys in the column""" - _has_keys_all: [String!] - - """do any of these strings exist as top-level keys in the column""" - _has_keys_any: [String!] - _in: [jsonb!] - _is_null: Boolean - _lt: jsonb - _lte: jsonb - _neq: jsonb - _nin: [jsonb!] -} - -"""mutation root""" -type mutation_root { - """ - delete data from the table: "darunrs_near_bitmap_v3.actions_index" - """ - delete_darunrs_near_bitmap_v3_actions_index( - """filter the rows which have to be deleted""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp! - ): darunrs_near_bitmap_v3_actions_index_mutation_response - - """ - delete single row from the table: "darunrs_near_bitmap_v3.actions_index" - """ - delete_darunrs_near_bitmap_v3_actions_index_by_pk(block_date: String!, receiver_id: String!): darunrs_near_bitmap_v3_actions_index - - """ - delete data from the table: "darunrs_near_bitmap_v3.sys_logs" - """ - delete_darunrs_near_bitmap_v3_sys_logs( - """filter the rows which have to be deleted""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp! - ): darunrs_near_bitmap_v3_sys_logs_mutation_response - - """ - delete single row from the table: "darunrs_near_bitmap_v3.sys_logs" - """ - delete_darunrs_near_bitmap_v3_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_bitmap_v3_sys_logs - - """ - delete data from the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - delete_darunrs_near_bitmap_v3_sys_metadata( - """filter the rows which have to be deleted""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp! - ): darunrs_near_bitmap_v3_sys_metadata_mutation_response - - """ - delete single row from the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - delete_darunrs_near_bitmap_v3_sys_metadata_by_pk(attribute: String!): darunrs_near_bitmap_v3_sys_metadata - - """ - delete data from the table: "darunrs_near_test_fork.indexer_storage" - """ - delete_darunrs_near_test_fork_indexer_storage( - """filter the rows which have to be deleted""" - where: darunrs_near_test_fork_indexer_storage_bool_exp! - ): darunrs_near_test_fork_indexer_storage_mutation_response - - """ - delete single row from the table: "darunrs_near_test_fork.indexer_storage" - """ - delete_darunrs_near_test_fork_indexer_storage_by_pk(function_name: String!, key_name: String!): darunrs_near_test_fork_indexer_storage - - """ - delete data from the table: "darunrs_near_test_fork.sys_logs" - """ - delete_darunrs_near_test_fork_sys_logs( - """filter the rows which have to be deleted""" - where: darunrs_near_test_fork_sys_logs_bool_exp! - ): darunrs_near_test_fork_sys_logs_mutation_response - - """ - delete single row from the table: "darunrs_near_test_fork.sys_logs" - """ - delete_darunrs_near_test_fork_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_test_fork_sys_logs - - """ - delete data from the table: "darunrs_near_test_fork.sys_metadata" - """ - delete_darunrs_near_test_fork_sys_metadata( - """filter the rows which have to be deleted""" - where: darunrs_near_test_fork_sys_metadata_bool_exp! - ): darunrs_near_test_fork_sys_metadata_mutation_response - - """ - delete single row from the table: "darunrs_near_test_fork.sys_metadata" - """ - delete_darunrs_near_test_fork_sys_metadata_by_pk(attribute: String!): darunrs_near_test_fork_sys_metadata - - """ - insert data into the table: "darunrs_near_bitmap_v3.actions_index" - """ - insert_darunrs_near_bitmap_v3_actions_index( - """the rows to be inserted""" - objects: [darunrs_near_bitmap_v3_actions_index_insert_input!]! - - """upsert condition""" - on_conflict: darunrs_near_bitmap_v3_actions_index_on_conflict - ): darunrs_near_bitmap_v3_actions_index_mutation_response - - """ - insert a single row into the table: "darunrs_near_bitmap_v3.actions_index" - """ - insert_darunrs_near_bitmap_v3_actions_index_one( - """the row to be inserted""" - object: darunrs_near_bitmap_v3_actions_index_insert_input! - - """upsert condition""" - on_conflict: darunrs_near_bitmap_v3_actions_index_on_conflict - ): darunrs_near_bitmap_v3_actions_index - - """ - insert data into the table: "darunrs_near_bitmap_v3.sys_logs" - """ - insert_darunrs_near_bitmap_v3_sys_logs( - """the rows to be inserted""" - objects: [darunrs_near_bitmap_v3_sys_logs_insert_input!]! - - """upsert condition""" - on_conflict: darunrs_near_bitmap_v3_sys_logs_on_conflict - ): darunrs_near_bitmap_v3_sys_logs_mutation_response - - """ - insert a single row into the table: "darunrs_near_bitmap_v3.sys_logs" - """ - insert_darunrs_near_bitmap_v3_sys_logs_one( - """the row to be inserted""" - object: darunrs_near_bitmap_v3_sys_logs_insert_input! - - """upsert condition""" - on_conflict: darunrs_near_bitmap_v3_sys_logs_on_conflict - ): darunrs_near_bitmap_v3_sys_logs - - """ - insert data into the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - insert_darunrs_near_bitmap_v3_sys_metadata( - """the rows to be inserted""" - objects: [darunrs_near_bitmap_v3_sys_metadata_insert_input!]! - - """upsert condition""" - on_conflict: darunrs_near_bitmap_v3_sys_metadata_on_conflict - ): darunrs_near_bitmap_v3_sys_metadata_mutation_response - - """ - insert a single row into the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - insert_darunrs_near_bitmap_v3_sys_metadata_one( - """the row to be inserted""" - object: darunrs_near_bitmap_v3_sys_metadata_insert_input! - - """upsert condition""" - on_conflict: darunrs_near_bitmap_v3_sys_metadata_on_conflict - ): darunrs_near_bitmap_v3_sys_metadata - - """ - insert data into the table: "darunrs_near_test_fork.indexer_storage" - """ - insert_darunrs_near_test_fork_indexer_storage( - """the rows to be inserted""" - objects: [darunrs_near_test_fork_indexer_storage_insert_input!]! - - """upsert condition""" - on_conflict: darunrs_near_test_fork_indexer_storage_on_conflict - ): darunrs_near_test_fork_indexer_storage_mutation_response - - """ - insert a single row into the table: "darunrs_near_test_fork.indexer_storage" - """ - insert_darunrs_near_test_fork_indexer_storage_one( - """the row to be inserted""" - object: darunrs_near_test_fork_indexer_storage_insert_input! - - """upsert condition""" - on_conflict: darunrs_near_test_fork_indexer_storage_on_conflict - ): darunrs_near_test_fork_indexer_storage - - """ - insert data into the table: "darunrs_near_test_fork.sys_logs" - """ - insert_darunrs_near_test_fork_sys_logs( - """the rows to be inserted""" - objects: [darunrs_near_test_fork_sys_logs_insert_input!]! - - """upsert condition""" - on_conflict: darunrs_near_test_fork_sys_logs_on_conflict - ): darunrs_near_test_fork_sys_logs_mutation_response - - """ - insert a single row into the table: "darunrs_near_test_fork.sys_logs" - """ - insert_darunrs_near_test_fork_sys_logs_one( - """the row to be inserted""" - object: darunrs_near_test_fork_sys_logs_insert_input! - - """upsert condition""" - on_conflict: darunrs_near_test_fork_sys_logs_on_conflict - ): darunrs_near_test_fork_sys_logs - - """ - insert data into the table: "darunrs_near_test_fork.sys_metadata" - """ - insert_darunrs_near_test_fork_sys_metadata( - """the rows to be inserted""" - objects: [darunrs_near_test_fork_sys_metadata_insert_input!]! - - """upsert condition""" - on_conflict: darunrs_near_test_fork_sys_metadata_on_conflict - ): darunrs_near_test_fork_sys_metadata_mutation_response - - """ - insert a single row into the table: "darunrs_near_test_fork.sys_metadata" - """ - insert_darunrs_near_test_fork_sys_metadata_one( - """the row to be inserted""" - object: darunrs_near_test_fork_sys_metadata_insert_input! - - """upsert condition""" - on_conflict: darunrs_near_test_fork_sys_metadata_on_conflict - ): darunrs_near_test_fork_sys_metadata - - """ - update data of the table: "darunrs_near_bitmap_v3.actions_index" - """ - update_darunrs_near_bitmap_v3_actions_index( - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_bitmap_v3_actions_index_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_actions_index_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp! - ): darunrs_near_bitmap_v3_actions_index_mutation_response - - """ - update single row of the table: "darunrs_near_bitmap_v3.actions_index" - """ - update_darunrs_near_bitmap_v3_actions_index_by_pk( - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_bitmap_v3_actions_index_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_actions_index_set_input - pk_columns: darunrs_near_bitmap_v3_actions_index_pk_columns_input! - ): darunrs_near_bitmap_v3_actions_index - - """ - update multiples rows of table: "darunrs_near_bitmap_v3.actions_index" - """ - update_darunrs_near_bitmap_v3_actions_index_many( - """updates to execute, in order""" - updates: [darunrs_near_bitmap_v3_actions_index_updates!]! - ): [darunrs_near_bitmap_v3_actions_index_mutation_response] - - """ - update data of the table: "darunrs_near_bitmap_v3.sys_logs" - """ - update_darunrs_near_bitmap_v3_sys_logs( - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_bitmap_v3_sys_logs_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_sys_logs_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp! - ): darunrs_near_bitmap_v3_sys_logs_mutation_response - - """ - update single row of the table: "darunrs_near_bitmap_v3.sys_logs" - """ - update_darunrs_near_bitmap_v3_sys_logs_by_pk( - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_bitmap_v3_sys_logs_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_sys_logs_set_input - pk_columns: darunrs_near_bitmap_v3_sys_logs_pk_columns_input! - ): darunrs_near_bitmap_v3_sys_logs - - """ - update multiples rows of table: "darunrs_near_bitmap_v3.sys_logs" - """ - update_darunrs_near_bitmap_v3_sys_logs_many( - """updates to execute, in order""" - updates: [darunrs_near_bitmap_v3_sys_logs_updates!]! - ): [darunrs_near_bitmap_v3_sys_logs_mutation_response] - - """ - update data of the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - update_darunrs_near_bitmap_v3_sys_metadata( - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_sys_metadata_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp! - ): darunrs_near_bitmap_v3_sys_metadata_mutation_response - - """ - update single row of the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - update_darunrs_near_bitmap_v3_sys_metadata_by_pk( - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_bitmap_v3_sys_metadata_set_input - pk_columns: darunrs_near_bitmap_v3_sys_metadata_pk_columns_input! - ): darunrs_near_bitmap_v3_sys_metadata - - """ - update multiples rows of table: "darunrs_near_bitmap_v3.sys_metadata" - """ - update_darunrs_near_bitmap_v3_sys_metadata_many( - """updates to execute, in order""" - updates: [darunrs_near_bitmap_v3_sys_metadata_updates!]! - ): [darunrs_near_bitmap_v3_sys_metadata_mutation_response] - - """ - update data of the table: "darunrs_near_test_fork.indexer_storage" - """ - update_darunrs_near_test_fork_indexer_storage( - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_indexer_storage_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_test_fork_indexer_storage_bool_exp! - ): darunrs_near_test_fork_indexer_storage_mutation_response - - """ - update single row of the table: "darunrs_near_test_fork.indexer_storage" - """ - update_darunrs_near_test_fork_indexer_storage_by_pk( - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_indexer_storage_set_input - pk_columns: darunrs_near_test_fork_indexer_storage_pk_columns_input! - ): darunrs_near_test_fork_indexer_storage - - """ - update multiples rows of table: "darunrs_near_test_fork.indexer_storage" - """ - update_darunrs_near_test_fork_indexer_storage_many( - """updates to execute, in order""" - updates: [darunrs_near_test_fork_indexer_storage_updates!]! - ): [darunrs_near_test_fork_indexer_storage_mutation_response] - - """ - update data of the table: "darunrs_near_test_fork.sys_logs" - """ - update_darunrs_near_test_fork_sys_logs( - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_test_fork_sys_logs_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_sys_logs_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_test_fork_sys_logs_bool_exp! - ): darunrs_near_test_fork_sys_logs_mutation_response - - """ - update single row of the table: "darunrs_near_test_fork.sys_logs" - """ - update_darunrs_near_test_fork_sys_logs_by_pk( - """increments the numeric columns with given value of the filtered values""" - _inc: darunrs_near_test_fork_sys_logs_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_sys_logs_set_input - pk_columns: darunrs_near_test_fork_sys_logs_pk_columns_input! - ): darunrs_near_test_fork_sys_logs - - """ - update multiples rows of table: "darunrs_near_test_fork.sys_logs" - """ - update_darunrs_near_test_fork_sys_logs_many( - """updates to execute, in order""" - updates: [darunrs_near_test_fork_sys_logs_updates!]! - ): [darunrs_near_test_fork_sys_logs_mutation_response] - - """ - update data of the table: "darunrs_near_test_fork.sys_metadata" - """ - update_darunrs_near_test_fork_sys_metadata( - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_sys_metadata_set_input - - """filter the rows which have to be updated""" - where: darunrs_near_test_fork_sys_metadata_bool_exp! - ): darunrs_near_test_fork_sys_metadata_mutation_response - - """ - update single row of the table: "darunrs_near_test_fork.sys_metadata" - """ - update_darunrs_near_test_fork_sys_metadata_by_pk( - """sets the columns of the filtered rows to the given values""" - _set: darunrs_near_test_fork_sys_metadata_set_input - pk_columns: darunrs_near_test_fork_sys_metadata_pk_columns_input! - ): darunrs_near_test_fork_sys_metadata - - """ - update multiples rows of table: "darunrs_near_test_fork.sys_metadata" - """ - update_darunrs_near_test_fork_sys_metadata_many( - """updates to execute, in order""" - updates: [darunrs_near_test_fork_sys_metadata_updates!]! - ): [darunrs_near_test_fork_sys_metadata_mutation_response] -} - -scalar numeric - -""" -Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. -""" -input numeric_comparison_exp { - _eq: numeric - _gt: numeric - _gte: numeric - _in: [numeric!] - _is_null: Boolean - _lt: numeric - _lte: numeric - _neq: numeric - _nin: [numeric!] -} - -"""column ordering options""" -enum order_by { - """in ascending order, nulls last""" - asc - - """in ascending order, nulls first""" - asc_nulls_first - - """in ascending order, nulls last""" - asc_nulls_last - - """in descending order, nulls first""" - desc - - """in descending order, nulls first""" - desc_nulls_first - - """in descending order, nulls last""" - desc_nulls_last -} - -type query_root { - """ - fetch data from the table: "darunrs_near_benchmark_indexer.indexer_storage" - """ - darunrs_near_benchmark_indexer_indexer_storage( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_indexer_storage_bool_exp - ): [darunrs_near_benchmark_indexer_indexer_storage!]! - - """ - fetch aggregated fields from the table: "darunrs_near_benchmark_indexer.indexer_storage" - """ - darunrs_near_benchmark_indexer_indexer_storage_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_indexer_storage_bool_exp - ): darunrs_near_benchmark_indexer_indexer_storage_aggregate! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.indexer_storage" using primary key columns - """ - darunrs_near_benchmark_indexer_indexer_storage_by_pk(function_name: String!, key_name: String!): darunrs_near_benchmark_indexer_indexer_storage - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_logs" - """ - darunrs_near_benchmark_indexer_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_logs_bool_exp - ): [darunrs_near_benchmark_indexer_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_benchmark_indexer.sys_logs" - """ - darunrs_near_benchmark_indexer_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_logs_bool_exp - ): darunrs_near_benchmark_indexer_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_logs" using primary key columns - """ - darunrs_near_benchmark_indexer_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_benchmark_indexer_sys_logs - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_metadata" - """ - darunrs_near_benchmark_indexer_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_metadata_bool_exp - ): [darunrs_near_benchmark_indexer_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_benchmark_indexer.sys_metadata" - """ - darunrs_near_benchmark_indexer_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_metadata_bool_exp - ): darunrs_near_benchmark_indexer_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_metadata" using primary key columns - """ - darunrs_near_benchmark_indexer_sys_metadata_by_pk(attribute: String!): darunrs_near_benchmark_indexer_sys_metadata - - """ - fetch data from the table: "darunrs_near_bitmap_v3.actions_index" - """ - darunrs_near_bitmap_v3_actions_index( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp - ): [darunrs_near_bitmap_v3_actions_index!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v3.actions_index" - """ - darunrs_near_bitmap_v3_actions_index_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp - ): darunrs_near_bitmap_v3_actions_index_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.actions_index" using primary key columns - """ - darunrs_near_bitmap_v3_actions_index_by_pk(block_date: String!, receiver_id: String!): darunrs_near_bitmap_v3_actions_index - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_logs" - """ - darunrs_near_bitmap_v3_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp - ): [darunrs_near_bitmap_v3_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v3.sys_logs" - """ - darunrs_near_bitmap_v3_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp - ): darunrs_near_bitmap_v3_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_logs" using primary key columns - """ - darunrs_near_bitmap_v3_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_bitmap_v3_sys_logs - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - darunrs_near_bitmap_v3_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp - ): [darunrs_near_bitmap_v3_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - darunrs_near_bitmap_v3_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp - ): darunrs_near_bitmap_v3_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_metadata" using primary key columns - """ - darunrs_near_bitmap_v3_sys_metadata_by_pk(attribute: String!): darunrs_near_bitmap_v3_sys_metadata - - """ - fetch data from the table: "darunrs_near_bitmap_v5.actions_index" - """ - darunrs_near_bitmap_v5_actions_index( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_actions_index_bool_exp - ): [darunrs_near_bitmap_v5_actions_index!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.actions_index" - """ - darunrs_near_bitmap_v5_actions_index_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_actions_index_bool_exp - ): darunrs_near_bitmap_v5_actions_index_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.actions_index" using primary key columns - """ - darunrs_near_bitmap_v5_actions_index_by_pk(block_date: date!, receiver_id: bigint!): darunrs_near_bitmap_v5_actions_index - - """ - fetch data from the table: "darunrs_near_bitmap_v5.receivers" - """ - darunrs_near_bitmap_v5_receivers( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_receivers_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_receivers_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_receivers_bool_exp - ): [darunrs_near_bitmap_v5_receivers!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.receivers" - """ - darunrs_near_bitmap_v5_receivers_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_receivers_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_receivers_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_receivers_bool_exp - ): darunrs_near_bitmap_v5_receivers_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.receivers" using primary key columns - """ - darunrs_near_bitmap_v5_receivers_by_pk(id: bigint!): darunrs_near_bitmap_v5_receivers - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_logs" - """ - darunrs_near_bitmap_v5_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_logs_bool_exp - ): [darunrs_near_bitmap_v5_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.sys_logs" - """ - darunrs_near_bitmap_v5_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_logs_bool_exp - ): darunrs_near_bitmap_v5_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_logs" using primary key columns - """ - darunrs_near_bitmap_v5_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_bitmap_v5_sys_logs - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_metadata" - """ - darunrs_near_bitmap_v5_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_metadata_bool_exp - ): [darunrs_near_bitmap_v5_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.sys_metadata" - """ - darunrs_near_bitmap_v5_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_metadata_bool_exp - ): darunrs_near_bitmap_v5_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_metadata" using primary key columns - """ - darunrs_near_bitmap_v5_sys_metadata_by_pk(attribute: String!): darunrs_near_bitmap_v5_sys_metadata - - """ - fetch data from the table: "darunrs_near_social_feed_test.comments" - """ - darunrs_near_social_feed_test_comments( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_comments_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_comments_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_comments_bool_exp - ): [darunrs_near_social_feed_test_comments!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.comments" - """ - darunrs_near_social_feed_test_comments_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_comments_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_comments_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_comments_bool_exp - ): darunrs_near_social_feed_test_comments_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.comments" using primary key columns - """ - darunrs_near_social_feed_test_comments_by_pk(id: Int!): darunrs_near_social_feed_test_comments - - """ - fetch data from the table: "darunrs_near_social_feed_test.post_likes" - """ - darunrs_near_social_feed_test_post_likes( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_post_likes_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_post_likes_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_post_likes_bool_exp - ): [darunrs_near_social_feed_test_post_likes!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.post_likes" - """ - darunrs_near_social_feed_test_post_likes_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_post_likes_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_post_likes_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_post_likes_bool_exp - ): darunrs_near_social_feed_test_post_likes_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.post_likes" using primary key columns - """ - darunrs_near_social_feed_test_post_likes_by_pk(account_id: String!, post_id: Int!): darunrs_near_social_feed_test_post_likes - - """ - fetch data from the table: "darunrs_near_social_feed_test.posts" - """ - darunrs_near_social_feed_test_posts( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_posts_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_posts_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_posts_bool_exp - ): [darunrs_near_social_feed_test_posts!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.posts" - """ - darunrs_near_social_feed_test_posts_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_posts_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_posts_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_posts_bool_exp - ): darunrs_near_social_feed_test_posts_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.posts" using primary key columns - """ - darunrs_near_social_feed_test_posts_by_pk(id: Int!): darunrs_near_social_feed_test_posts - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_logs" - """ - darunrs_near_social_feed_test_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_logs_bool_exp - ): [darunrs_near_social_feed_test_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.sys_logs" - """ - darunrs_near_social_feed_test_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_logs_bool_exp - ): darunrs_near_social_feed_test_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_logs" using primary key columns - """ - darunrs_near_social_feed_test_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_social_feed_test_sys_logs - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_metadata" - """ - darunrs_near_social_feed_test_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_metadata_bool_exp - ): [darunrs_near_social_feed_test_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.sys_metadata" - """ - darunrs_near_social_feed_test_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_metadata_bool_exp - ): darunrs_near_social_feed_test_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_metadata" using primary key columns - """ - darunrs_near_social_feed_test_sys_metadata_by_pk(attribute: String!): darunrs_near_social_feed_test_sys_metadata - - """ - fetch data from the table: "darunrs_near_test_fork.indexer_storage" - """ - darunrs_near_test_fork_indexer_storage( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_indexer_storage_bool_exp - ): [darunrs_near_test_fork_indexer_storage!]! - - """ - fetch aggregated fields from the table: "darunrs_near_test_fork.indexer_storage" - """ - darunrs_near_test_fork_indexer_storage_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_indexer_storage_bool_exp - ): darunrs_near_test_fork_indexer_storage_aggregate! - - """ - fetch data from the table: "darunrs_near_test_fork.indexer_storage" using primary key columns - """ - darunrs_near_test_fork_indexer_storage_by_pk(function_name: String!, key_name: String!): darunrs_near_test_fork_indexer_storage - - """ - fetch data from the table: "darunrs_near_test_fork.sys_logs" - """ - darunrs_near_test_fork_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_logs_bool_exp - ): [darunrs_near_test_fork_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_test_fork.sys_logs" - """ - darunrs_near_test_fork_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_logs_bool_exp - ): darunrs_near_test_fork_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_test_fork.sys_logs" using primary key columns - """ - darunrs_near_test_fork_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_test_fork_sys_logs - - """ - fetch data from the table: "darunrs_near_test_fork.sys_metadata" - """ - darunrs_near_test_fork_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_metadata_bool_exp - ): [darunrs_near_test_fork_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_test_fork.sys_metadata" - """ - darunrs_near_test_fork_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_metadata_bool_exp - ): darunrs_near_test_fork_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_test_fork.sys_metadata" using primary key columns - """ - darunrs_near_test_fork_sys_metadata_by_pk(attribute: String!): darunrs_near_test_fork_sys_metadata -} - -type subscription_root { - """ - fetch data from the table: "darunrs_near_benchmark_indexer.indexer_storage" - """ - darunrs_near_benchmark_indexer_indexer_storage( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_indexer_storage_bool_exp - ): [darunrs_near_benchmark_indexer_indexer_storage!]! - - """ - fetch aggregated fields from the table: "darunrs_near_benchmark_indexer.indexer_storage" - """ - darunrs_near_benchmark_indexer_indexer_storage_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_indexer_storage_bool_exp - ): darunrs_near_benchmark_indexer_indexer_storage_aggregate! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.indexer_storage" using primary key columns - """ - darunrs_near_benchmark_indexer_indexer_storage_by_pk(function_name: String!, key_name: String!): darunrs_near_benchmark_indexer_indexer_storage - - """ - fetch data from the table in a streaming manner: "darunrs_near_benchmark_indexer.indexer_storage" - """ - darunrs_near_benchmark_indexer_indexer_storage_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_benchmark_indexer_indexer_storage_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_indexer_storage_bool_exp - ): [darunrs_near_benchmark_indexer_indexer_storage!]! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_logs" - """ - darunrs_near_benchmark_indexer_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_logs_bool_exp - ): [darunrs_near_benchmark_indexer_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_benchmark_indexer.sys_logs" - """ - darunrs_near_benchmark_indexer_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_logs_bool_exp - ): darunrs_near_benchmark_indexer_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_logs" using primary key columns - """ - darunrs_near_benchmark_indexer_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_benchmark_indexer_sys_logs - - """ - fetch data from the table in a streaming manner: "darunrs_near_benchmark_indexer.sys_logs" - """ - darunrs_near_benchmark_indexer_sys_logs_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_benchmark_indexer_sys_logs_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_logs_bool_exp - ): [darunrs_near_benchmark_indexer_sys_logs!]! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_metadata" - """ - darunrs_near_benchmark_indexer_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_metadata_bool_exp - ): [darunrs_near_benchmark_indexer_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_benchmark_indexer.sys_metadata" - """ - darunrs_near_benchmark_indexer_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_benchmark_indexer_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_benchmark_indexer_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_metadata_bool_exp - ): darunrs_near_benchmark_indexer_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_benchmark_indexer.sys_metadata" using primary key columns - """ - darunrs_near_benchmark_indexer_sys_metadata_by_pk(attribute: String!): darunrs_near_benchmark_indexer_sys_metadata - - """ - fetch data from the table in a streaming manner: "darunrs_near_benchmark_indexer.sys_metadata" - """ - darunrs_near_benchmark_indexer_sys_metadata_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_benchmark_indexer_sys_metadata_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_benchmark_indexer_sys_metadata_bool_exp - ): [darunrs_near_benchmark_indexer_sys_metadata!]! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.actions_index" - """ - darunrs_near_bitmap_v3_actions_index( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp - ): [darunrs_near_bitmap_v3_actions_index!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v3.actions_index" - """ - darunrs_near_bitmap_v3_actions_index_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp - ): darunrs_near_bitmap_v3_actions_index_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.actions_index" using primary key columns - """ - darunrs_near_bitmap_v3_actions_index_by_pk(block_date: String!, receiver_id: String!): darunrs_near_bitmap_v3_actions_index - - """ - fetch data from the table in a streaming manner: "darunrs_near_bitmap_v3.actions_index" - """ - darunrs_near_bitmap_v3_actions_index_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_bitmap_v3_actions_index_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_actions_index_bool_exp - ): [darunrs_near_bitmap_v3_actions_index!]! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_logs" - """ - darunrs_near_bitmap_v3_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp - ): [darunrs_near_bitmap_v3_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v3.sys_logs" - """ - darunrs_near_bitmap_v3_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp - ): darunrs_near_bitmap_v3_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_logs" using primary key columns - """ - darunrs_near_bitmap_v3_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_bitmap_v3_sys_logs - - """ - fetch data from the table in a streaming manner: "darunrs_near_bitmap_v3.sys_logs" - """ - darunrs_near_bitmap_v3_sys_logs_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_bitmap_v3_sys_logs_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_logs_bool_exp - ): [darunrs_near_bitmap_v3_sys_logs!]! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - darunrs_near_bitmap_v3_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp - ): [darunrs_near_bitmap_v3_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v3.sys_metadata" - """ - darunrs_near_bitmap_v3_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v3_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v3_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp - ): darunrs_near_bitmap_v3_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v3.sys_metadata" using primary key columns - """ - darunrs_near_bitmap_v3_sys_metadata_by_pk(attribute: String!): darunrs_near_bitmap_v3_sys_metadata - - """ - fetch data from the table in a streaming manner: "darunrs_near_bitmap_v3.sys_metadata" - """ - darunrs_near_bitmap_v3_sys_metadata_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_bitmap_v3_sys_metadata_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_bitmap_v3_sys_metadata_bool_exp - ): [darunrs_near_bitmap_v3_sys_metadata!]! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.actions_index" - """ - darunrs_near_bitmap_v5_actions_index( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_actions_index_bool_exp - ): [darunrs_near_bitmap_v5_actions_index!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.actions_index" - """ - darunrs_near_bitmap_v5_actions_index_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_actions_index_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_actions_index_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_actions_index_bool_exp - ): darunrs_near_bitmap_v5_actions_index_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.actions_index" using primary key columns - """ - darunrs_near_bitmap_v5_actions_index_by_pk(block_date: date!, receiver_id: bigint!): darunrs_near_bitmap_v5_actions_index - - """ - fetch data from the table in a streaming manner: "darunrs_near_bitmap_v5.actions_index" - """ - darunrs_near_bitmap_v5_actions_index_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_bitmap_v5_actions_index_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_actions_index_bool_exp - ): [darunrs_near_bitmap_v5_actions_index!]! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.receivers" - """ - darunrs_near_bitmap_v5_receivers( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_receivers_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_receivers_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_receivers_bool_exp - ): [darunrs_near_bitmap_v5_receivers!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.receivers" - """ - darunrs_near_bitmap_v5_receivers_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_receivers_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_receivers_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_receivers_bool_exp - ): darunrs_near_bitmap_v5_receivers_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.receivers" using primary key columns - """ - darunrs_near_bitmap_v5_receivers_by_pk(id: bigint!): darunrs_near_bitmap_v5_receivers - - """ - fetch data from the table in a streaming manner: "darunrs_near_bitmap_v5.receivers" - """ - darunrs_near_bitmap_v5_receivers_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_bitmap_v5_receivers_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_receivers_bool_exp - ): [darunrs_near_bitmap_v5_receivers!]! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_logs" - """ - darunrs_near_bitmap_v5_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_logs_bool_exp - ): [darunrs_near_bitmap_v5_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.sys_logs" - """ - darunrs_near_bitmap_v5_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_logs_bool_exp - ): darunrs_near_bitmap_v5_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_logs" using primary key columns - """ - darunrs_near_bitmap_v5_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_bitmap_v5_sys_logs - - """ - fetch data from the table in a streaming manner: "darunrs_near_bitmap_v5.sys_logs" - """ - darunrs_near_bitmap_v5_sys_logs_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_bitmap_v5_sys_logs_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_logs_bool_exp - ): [darunrs_near_bitmap_v5_sys_logs!]! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_metadata" - """ - darunrs_near_bitmap_v5_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_metadata_bool_exp - ): [darunrs_near_bitmap_v5_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_bitmap_v5.sys_metadata" - """ - darunrs_near_bitmap_v5_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_bitmap_v5_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_bitmap_v5_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_metadata_bool_exp - ): darunrs_near_bitmap_v5_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_bitmap_v5.sys_metadata" using primary key columns - """ - darunrs_near_bitmap_v5_sys_metadata_by_pk(attribute: String!): darunrs_near_bitmap_v5_sys_metadata - - """ - fetch data from the table in a streaming manner: "darunrs_near_bitmap_v5.sys_metadata" - """ - darunrs_near_bitmap_v5_sys_metadata_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_bitmap_v5_sys_metadata_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_bitmap_v5_sys_metadata_bool_exp - ): [darunrs_near_bitmap_v5_sys_metadata!]! - - """ - fetch data from the table: "darunrs_near_social_feed_test.comments" - """ - darunrs_near_social_feed_test_comments( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_comments_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_comments_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_comments_bool_exp - ): [darunrs_near_social_feed_test_comments!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.comments" - """ - darunrs_near_social_feed_test_comments_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_comments_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_comments_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_comments_bool_exp - ): darunrs_near_social_feed_test_comments_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.comments" using primary key columns - """ - darunrs_near_social_feed_test_comments_by_pk(id: Int!): darunrs_near_social_feed_test_comments - - """ - fetch data from the table in a streaming manner: "darunrs_near_social_feed_test.comments" - """ - darunrs_near_social_feed_test_comments_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_social_feed_test_comments_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_social_feed_test_comments_bool_exp - ): [darunrs_near_social_feed_test_comments!]! - - """ - fetch data from the table: "darunrs_near_social_feed_test.post_likes" - """ - darunrs_near_social_feed_test_post_likes( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_post_likes_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_post_likes_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_post_likes_bool_exp - ): [darunrs_near_social_feed_test_post_likes!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.post_likes" - """ - darunrs_near_social_feed_test_post_likes_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_post_likes_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_post_likes_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_post_likes_bool_exp - ): darunrs_near_social_feed_test_post_likes_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.post_likes" using primary key columns - """ - darunrs_near_social_feed_test_post_likes_by_pk(account_id: String!, post_id: Int!): darunrs_near_social_feed_test_post_likes - - """ - fetch data from the table in a streaming manner: "darunrs_near_social_feed_test.post_likes" - """ - darunrs_near_social_feed_test_post_likes_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_social_feed_test_post_likes_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_social_feed_test_post_likes_bool_exp - ): [darunrs_near_social_feed_test_post_likes!]! - - """ - fetch data from the table: "darunrs_near_social_feed_test.posts" - """ - darunrs_near_social_feed_test_posts( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_posts_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_posts_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_posts_bool_exp - ): [darunrs_near_social_feed_test_posts!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.posts" - """ - darunrs_near_social_feed_test_posts_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_posts_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_posts_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_posts_bool_exp - ): darunrs_near_social_feed_test_posts_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.posts" using primary key columns - """ - darunrs_near_social_feed_test_posts_by_pk(id: Int!): darunrs_near_social_feed_test_posts - - """ - fetch data from the table in a streaming manner: "darunrs_near_social_feed_test.posts" - """ - darunrs_near_social_feed_test_posts_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_social_feed_test_posts_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_social_feed_test_posts_bool_exp - ): [darunrs_near_social_feed_test_posts!]! - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_logs" - """ - darunrs_near_social_feed_test_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_logs_bool_exp - ): [darunrs_near_social_feed_test_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.sys_logs" - """ - darunrs_near_social_feed_test_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_logs_bool_exp - ): darunrs_near_social_feed_test_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_logs" using primary key columns - """ - darunrs_near_social_feed_test_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_social_feed_test_sys_logs - - """ - fetch data from the table in a streaming manner: "darunrs_near_social_feed_test.sys_logs" - """ - darunrs_near_social_feed_test_sys_logs_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_social_feed_test_sys_logs_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_logs_bool_exp - ): [darunrs_near_social_feed_test_sys_logs!]! - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_metadata" - """ - darunrs_near_social_feed_test_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_metadata_bool_exp - ): [darunrs_near_social_feed_test_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_social_feed_test.sys_metadata" - """ - darunrs_near_social_feed_test_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_social_feed_test_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_social_feed_test_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_metadata_bool_exp - ): darunrs_near_social_feed_test_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_social_feed_test.sys_metadata" using primary key columns - """ - darunrs_near_social_feed_test_sys_metadata_by_pk(attribute: String!): darunrs_near_social_feed_test_sys_metadata - - """ - fetch data from the table in a streaming manner: "darunrs_near_social_feed_test.sys_metadata" - """ - darunrs_near_social_feed_test_sys_metadata_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_social_feed_test_sys_metadata_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_social_feed_test_sys_metadata_bool_exp - ): [darunrs_near_social_feed_test_sys_metadata!]! - - """ - fetch data from the table: "darunrs_near_test_fork.indexer_storage" - """ - darunrs_near_test_fork_indexer_storage( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_indexer_storage_bool_exp - ): [darunrs_near_test_fork_indexer_storage!]! - - """ - fetch aggregated fields from the table: "darunrs_near_test_fork.indexer_storage" - """ - darunrs_near_test_fork_indexer_storage_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_indexer_storage_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_indexer_storage_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_indexer_storage_bool_exp - ): darunrs_near_test_fork_indexer_storage_aggregate! - - """ - fetch data from the table: "darunrs_near_test_fork.indexer_storage" using primary key columns - """ - darunrs_near_test_fork_indexer_storage_by_pk(function_name: String!, key_name: String!): darunrs_near_test_fork_indexer_storage - - """ - fetch data from the table in a streaming manner: "darunrs_near_test_fork.indexer_storage" - """ - darunrs_near_test_fork_indexer_storage_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_test_fork_indexer_storage_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_test_fork_indexer_storage_bool_exp - ): [darunrs_near_test_fork_indexer_storage!]! - - """ - fetch data from the table: "darunrs_near_test_fork.sys_logs" - """ - darunrs_near_test_fork_sys_logs( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_logs_bool_exp - ): [darunrs_near_test_fork_sys_logs!]! - - """ - fetch aggregated fields from the table: "darunrs_near_test_fork.sys_logs" - """ - darunrs_near_test_fork_sys_logs_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_logs_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_logs_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_logs_bool_exp - ): darunrs_near_test_fork_sys_logs_aggregate! - - """ - fetch data from the table: "darunrs_near_test_fork.sys_logs" using primary key columns - """ - darunrs_near_test_fork_sys_logs_by_pk(date: date!, id: bigint!): darunrs_near_test_fork_sys_logs - - """ - fetch data from the table in a streaming manner: "darunrs_near_test_fork.sys_logs" - """ - darunrs_near_test_fork_sys_logs_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_test_fork_sys_logs_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_logs_bool_exp - ): [darunrs_near_test_fork_sys_logs!]! - - """ - fetch data from the table: "darunrs_near_test_fork.sys_metadata" - """ - darunrs_near_test_fork_sys_metadata( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_metadata_bool_exp - ): [darunrs_near_test_fork_sys_metadata!]! - - """ - fetch aggregated fields from the table: "darunrs_near_test_fork.sys_metadata" - """ - darunrs_near_test_fork_sys_metadata_aggregate( - """distinct select on columns""" - distinct_on: [darunrs_near_test_fork_sys_metadata_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [darunrs_near_test_fork_sys_metadata_order_by!] - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_metadata_bool_exp - ): darunrs_near_test_fork_sys_metadata_aggregate! - - """ - fetch data from the table: "darunrs_near_test_fork.sys_metadata" using primary key columns - """ - darunrs_near_test_fork_sys_metadata_by_pk(attribute: String!): darunrs_near_test_fork_sys_metadata - - """ - fetch data from the table in a streaming manner: "darunrs_near_test_fork.sys_metadata" - """ - darunrs_near_test_fork_sys_metadata_stream( - """maximum number of rows returned in a single batch""" - batch_size: Int! - - """cursor to stream the results returned by the query""" - cursor: [darunrs_near_test_fork_sys_metadata_stream_cursor_input]! - - """filter the rows returned""" - where: darunrs_near_test_fork_sys_metadata_bool_exp - ): [darunrs_near_test_fork_sys_metadata!]! -} - -scalar timestamp - -""" -Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. -""" -input timestamp_comparison_exp { - _eq: timestamp - _gt: timestamp - _gte: timestamp - _in: [timestamp!] - _is_null: Boolean - _lt: timestamp - _lte: timestamp - _neq: timestamp - _nin: [timestamp!] -} diff --git a/block-streamer/graphql/dataplatform_near/get_bitmaps_exact.graphql b/block-streamer/graphql/dataplatform_near/get_bitmaps_exact.graphql new file mode 100644 index 000000000..ce99dd603 --- /dev/null +++ b/block-streamer/graphql/dataplatform_near/get_bitmaps_exact.graphql @@ -0,0 +1,6 @@ +query GetBitmapsExact($block_date: date, $receiver_ids: [String!], $limit: Int, $offset: Int) { + dataplatform_near_receiver_blocks_bitmaps(limit: $limit, offset: $offset, where: {block_date: {_eq: $block_date}, receiver: {receiver: {_in: $receiver_ids}}}) { + bitmap + first_block_height + } +} diff --git a/block-streamer/graphql/dataplatform_near/get_bitmaps_wildcard.graphql b/block-streamer/graphql/dataplatform_near/get_bitmaps_wildcard.graphql new file mode 100644 index 000000000..26ec1790e --- /dev/null +++ b/block-streamer/graphql/dataplatform_near/get_bitmaps_wildcard.graphql @@ -0,0 +1,6 @@ +query GetBitmapsWildcard($block_date: date, $receiver_ids: String, $limit: Int, $offset: Int) { + dataplatform_near_receiver_blocks_bitmaps(limit: $limit, offset: $offset, where: {block_date: {_eq: $block_date}, receiver: {receiver: {_regex: $receiver_ids}}}) { + bitmap + first_block_height + } +} diff --git a/block-streamer/graphql/dataplatform_near/schema.graphql b/block-streamer/graphql/dataplatform_near/schema.graphql new file mode 100644 index 000000000..0a1cdea0e --- /dev/null +++ b/block-streamer/graphql/dataplatform_near/schema.graphql @@ -0,0 +1,14065 @@ +schema { + query: query_root + subscription: subscription_root +} + +"""whether this query should be cached (Hasura Cloud only)""" +directive @cached( + """measured in seconds""" + ttl: Int! = 60 + + """refresh the cache entry""" + refresh: Boolean! = false +) on QUERY + +""" +Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. +""" +input Boolean_comparison_exp { + _eq: Boolean + _gt: Boolean + _gte: Boolean + _in: [Boolean!] + _is_null: Boolean + _lt: Boolean + _lte: Boolean + _neq: Boolean + _nin: [Boolean!] +} + +""" +Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. +""" +input Int_comparison_exp { + _eq: Int + _gt: Int + _gte: Int + _in: [Int!] + _is_null: Boolean + _lt: Int + _lte: Int + _neq: Int + _nin: [Int!] +} + +""" +Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. +""" +input String_array_comparison_exp { + """is the array contained in the given array value""" + _contained_in: [String!] + + """does the array contain the given value""" + _contains: [String!] + _eq: [String!] + _gt: [String!] + _gte: [String!] + _in: [[String!]!] + _is_null: Boolean + _lt: [String!] + _lte: [String!] + _neq: [String!] + _nin: [[String!]!] +} + +""" +Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. +""" +input String_comparison_exp { + _eq: String + _gt: String + _gte: String + + """does the column match the given case-insensitive pattern""" + _ilike: String + _in: [String!] + + """ + does the column match the given POSIX regular expression, case insensitive + """ + _iregex: String + _is_null: Boolean + + """does the column match the given pattern""" + _like: String + _lt: String + _lte: String + _neq: String + + """does the column NOT match the given case-insensitive pattern""" + _nilike: String + _nin: [String!] + + """ + does the column NOT match the given POSIX regular expression, case insensitive + """ + _niregex: String + + """does the column NOT match the given pattern""" + _nlike: String + + """ + does the column NOT match the given POSIX regular expression, case sensitive + """ + _nregex: String + + """does the column NOT match the given SQL regular expression""" + _nsimilar: String + + """ + does the column match the given POSIX regular expression, case sensitive + """ + _regex: String + + """does the column match the given SQL regular expression""" + _similar: String +} + +scalar bigint + +""" +Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. +""" +input bigint_comparison_exp { + _eq: bigint + _gt: bigint + _gte: bigint + _in: [bigint!] + _is_null: Boolean + _lt: bigint + _lte: bigint + _neq: bigint + _nin: [bigint!] +} + +"""ordering argument of a cursor""" +enum cursor_ordering { + """ascending ordering of the cursor""" + ASC + + """descending ordering of the cursor""" + DESC +} + +""" +columns and relationships of "dataplatform_near_access_keys_v1.access_keys_v1" +""" +type dataplatform_near_access_keys_v1_access_keys_v1 { + account_deleted_by_receipt_id: String + account_id: String! + block_timestamp_utc: timestamp + created_by_receipt_id: String + deleted_by_receipt_id: String + indexed_at_timestamp_utc: timestamp + indexed_lag_in_seconds: numeric + last_updated_block_height: numeric! + permission_kind: String! + public_key: String! +} + +""" +aggregated selection of "dataplatform_near_access_keys_v1.access_keys_v1" +""" +type dataplatform_near_access_keys_v1_access_keys_v1_aggregate { + aggregate: dataplatform_near_access_keys_v1_access_keys_v1_aggregate_fields + nodes: [dataplatform_near_access_keys_v1_access_keys_v1!]! +} + +""" +aggregate fields of "dataplatform_near_access_keys_v1.access_keys_v1" +""" +type dataplatform_near_access_keys_v1_access_keys_v1_aggregate_fields { + avg: dataplatform_near_access_keys_v1_access_keys_v1_avg_fields + count(columns: [dataplatform_near_access_keys_v1_access_keys_v1_select_column!], distinct: Boolean): Int! + max: dataplatform_near_access_keys_v1_access_keys_v1_max_fields + min: dataplatform_near_access_keys_v1_access_keys_v1_min_fields + stddev: dataplatform_near_access_keys_v1_access_keys_v1_stddev_fields + stddev_pop: dataplatform_near_access_keys_v1_access_keys_v1_stddev_pop_fields + stddev_samp: dataplatform_near_access_keys_v1_access_keys_v1_stddev_samp_fields + sum: dataplatform_near_access_keys_v1_access_keys_v1_sum_fields + var_pop: dataplatform_near_access_keys_v1_access_keys_v1_var_pop_fields + var_samp: dataplatform_near_access_keys_v1_access_keys_v1_var_samp_fields + variance: dataplatform_near_access_keys_v1_access_keys_v1_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_avg_fields { + indexed_lag_in_seconds: Float + last_updated_block_height: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_access_keys_v1.access_keys_v1". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_access_keys_v1_access_keys_v1_bool_exp { + _and: [dataplatform_near_access_keys_v1_access_keys_v1_bool_exp!] + _not: dataplatform_near_access_keys_v1_access_keys_v1_bool_exp + _or: [dataplatform_near_access_keys_v1_access_keys_v1_bool_exp!] + account_deleted_by_receipt_id: String_comparison_exp + account_id: String_comparison_exp + block_timestamp_utc: timestamp_comparison_exp + created_by_receipt_id: String_comparison_exp + deleted_by_receipt_id: String_comparison_exp + indexed_at_timestamp_utc: timestamp_comparison_exp + indexed_lag_in_seconds: numeric_comparison_exp + last_updated_block_height: numeric_comparison_exp + permission_kind: String_comparison_exp + public_key: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_max_fields { + account_deleted_by_receipt_id: String + account_id: String + block_timestamp_utc: timestamp + created_by_receipt_id: String + deleted_by_receipt_id: String + indexed_at_timestamp_utc: timestamp + indexed_lag_in_seconds: numeric + last_updated_block_height: numeric + permission_kind: String + public_key: String +} + +"""aggregate min on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_min_fields { + account_deleted_by_receipt_id: String + account_id: String + block_timestamp_utc: timestamp + created_by_receipt_id: String + deleted_by_receipt_id: String + indexed_at_timestamp_utc: timestamp + indexed_lag_in_seconds: numeric + last_updated_block_height: numeric + permission_kind: String + public_key: String +} + +""" +Ordering options when selecting data from "dataplatform_near_access_keys_v1.access_keys_v1". +""" +input dataplatform_near_access_keys_v1_access_keys_v1_order_by { + account_deleted_by_receipt_id: order_by + account_id: order_by + block_timestamp_utc: order_by + created_by_receipt_id: order_by + deleted_by_receipt_id: order_by + indexed_at_timestamp_utc: order_by + indexed_lag_in_seconds: order_by + last_updated_block_height: order_by + permission_kind: order_by + public_key: order_by +} + +""" +select columns of table "dataplatform_near_access_keys_v1.access_keys_v1" +""" +enum dataplatform_near_access_keys_v1_access_keys_v1_select_column { + """column name""" + account_deleted_by_receipt_id + + """column name""" + account_id + + """column name""" + block_timestamp_utc + + """column name""" + created_by_receipt_id + + """column name""" + deleted_by_receipt_id + + """column name""" + indexed_at_timestamp_utc + + """column name""" + indexed_lag_in_seconds + + """column name""" + last_updated_block_height + + """column name""" + permission_kind + + """column name""" + public_key +} + +"""aggregate stddev on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_stddev_fields { + indexed_lag_in_seconds: Float + last_updated_block_height: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_stddev_pop_fields { + indexed_lag_in_seconds: Float + last_updated_block_height: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_stddev_samp_fields { + indexed_lag_in_seconds: Float + last_updated_block_height: Float +} + +""" +Streaming cursor of the table "dataplatform_near_access_keys_v1_access_keys_v1" +""" +input dataplatform_near_access_keys_v1_access_keys_v1_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_access_keys_v1_access_keys_v1_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_access_keys_v1_access_keys_v1_stream_cursor_value_input { + account_deleted_by_receipt_id: String + account_id: String + block_timestamp_utc: timestamp + created_by_receipt_id: String + deleted_by_receipt_id: String + indexed_at_timestamp_utc: timestamp + indexed_lag_in_seconds: numeric + last_updated_block_height: numeric + permission_kind: String + public_key: String +} + +"""aggregate sum on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_sum_fields { + indexed_lag_in_seconds: numeric + last_updated_block_height: numeric +} + +"""aggregate var_pop on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_var_pop_fields { + indexed_lag_in_seconds: Float + last_updated_block_height: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_var_samp_fields { + indexed_lag_in_seconds: Float + last_updated_block_height: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_access_keys_v1_access_keys_v1_variance_fields { + indexed_lag_in_seconds: Float + last_updated_block_height: Float +} + +""" +columns and relationships of "dataplatform_near_access_keys_v1.sys_logs" +""" +type dataplatform_near_access_keys_v1_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_access_keys_v1.sys_logs" +""" +type dataplatform_near_access_keys_v1_sys_logs_aggregate { + aggregate: dataplatform_near_access_keys_v1_sys_logs_aggregate_fields + nodes: [dataplatform_near_access_keys_v1_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_access_keys_v1.sys_logs" +""" +type dataplatform_near_access_keys_v1_sys_logs_aggregate_fields { + avg: dataplatform_near_access_keys_v1_sys_logs_avg_fields + count(columns: [dataplatform_near_access_keys_v1_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_access_keys_v1_sys_logs_max_fields + min: dataplatform_near_access_keys_v1_sys_logs_min_fields + stddev: dataplatform_near_access_keys_v1_sys_logs_stddev_fields + stddev_pop: dataplatform_near_access_keys_v1_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_access_keys_v1_sys_logs_stddev_samp_fields + sum: dataplatform_near_access_keys_v1_sys_logs_sum_fields + var_pop: dataplatform_near_access_keys_v1_sys_logs_var_pop_fields + var_samp: dataplatform_near_access_keys_v1_sys_logs_var_samp_fields + variance: dataplatform_near_access_keys_v1_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_access_keys_v1_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_access_keys_v1.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_access_keys_v1_sys_logs_bool_exp { + _and: [dataplatform_near_access_keys_v1_sys_logs_bool_exp!] + _not: dataplatform_near_access_keys_v1_sys_logs_bool_exp + _or: [dataplatform_near_access_keys_v1_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_access_keys_v1_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_access_keys_v1_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_access_keys_v1.sys_logs". +""" +input dataplatform_near_access_keys_v1_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_access_keys_v1.sys_logs" +""" +enum dataplatform_near_access_keys_v1_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_access_keys_v1_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_access_keys_v1_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_access_keys_v1_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_access_keys_v1_sys_logs" +""" +input dataplatform_near_access_keys_v1_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_access_keys_v1_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_access_keys_v1_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_access_keys_v1_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_access_keys_v1_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_access_keys_v1_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_access_keys_v1_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_access_keys_v1.sys_metadata" +""" +type dataplatform_near_access_keys_v1_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_access_keys_v1.sys_metadata" +""" +type dataplatform_near_access_keys_v1_sys_metadata_aggregate { + aggregate: dataplatform_near_access_keys_v1_sys_metadata_aggregate_fields + nodes: [dataplatform_near_access_keys_v1_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_access_keys_v1.sys_metadata" +""" +type dataplatform_near_access_keys_v1_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_access_keys_v1_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_access_keys_v1_sys_metadata_max_fields + min: dataplatform_near_access_keys_v1_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_access_keys_v1.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_access_keys_v1_sys_metadata_bool_exp { + _and: [dataplatform_near_access_keys_v1_sys_metadata_bool_exp!] + _not: dataplatform_near_access_keys_v1_sys_metadata_bool_exp + _or: [dataplatform_near_access_keys_v1_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_access_keys_v1_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_access_keys_v1_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_access_keys_v1.sys_metadata". +""" +input dataplatform_near_access_keys_v1_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_access_keys_v1.sys_metadata" +""" +enum dataplatform_near_access_keys_v1_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_access_keys_v1_sys_metadata" +""" +input dataplatform_near_access_keys_v1_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_access_keys_v1_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_access_keys_v1_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_accounts.accounts" +""" +type dataplatform_near_accounts_accounts { + account_id: String! + background_image: String + block_height: Int! + block_timestamp_ms: bigint! + description: String + horizon_tnc: Boolean + image: String + linktree: String + name: String + tags: String +} + +""" +aggregated selection of "dataplatform_near_accounts.accounts" +""" +type dataplatform_near_accounts_accounts_aggregate { + aggregate: dataplatform_near_accounts_accounts_aggregate_fields + nodes: [dataplatform_near_accounts_accounts!]! +} + +""" +aggregate fields of "dataplatform_near_accounts.accounts" +""" +type dataplatform_near_accounts_accounts_aggregate_fields { + avg: dataplatform_near_accounts_accounts_avg_fields + count(columns: [dataplatform_near_accounts_accounts_select_column!], distinct: Boolean): Int! + max: dataplatform_near_accounts_accounts_max_fields + min: dataplatform_near_accounts_accounts_min_fields + stddev: dataplatform_near_accounts_accounts_stddev_fields + stddev_pop: dataplatform_near_accounts_accounts_stddev_pop_fields + stddev_samp: dataplatform_near_accounts_accounts_stddev_samp_fields + sum: dataplatform_near_accounts_accounts_sum_fields + var_pop: dataplatform_near_accounts_accounts_var_pop_fields + var_samp: dataplatform_near_accounts_accounts_var_samp_fields + variance: dataplatform_near_accounts_accounts_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_accounts_accounts_avg_fields { + block_height: Float + block_timestamp_ms: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_accounts.accounts". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_accounts_accounts_bool_exp { + _and: [dataplatform_near_accounts_accounts_bool_exp!] + _not: dataplatform_near_accounts_accounts_bool_exp + _or: [dataplatform_near_accounts_accounts_bool_exp!] + account_id: String_comparison_exp + background_image: String_comparison_exp + block_height: Int_comparison_exp + block_timestamp_ms: bigint_comparison_exp + description: String_comparison_exp + horizon_tnc: Boolean_comparison_exp + image: String_comparison_exp + linktree: String_comparison_exp + name: String_comparison_exp + tags: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_accounts_accounts_max_fields { + account_id: String + background_image: String + block_height: Int + block_timestamp_ms: bigint + description: String + image: String + linktree: String + name: String + tags: String +} + +"""aggregate min on columns""" +type dataplatform_near_accounts_accounts_min_fields { + account_id: String + background_image: String + block_height: Int + block_timestamp_ms: bigint + description: String + image: String + linktree: String + name: String + tags: String +} + +""" +Ordering options when selecting data from "dataplatform_near_accounts.accounts". +""" +input dataplatform_near_accounts_accounts_order_by { + account_id: order_by + background_image: order_by + block_height: order_by + block_timestamp_ms: order_by + description: order_by + horizon_tnc: order_by + image: order_by + linktree: order_by + name: order_by + tags: order_by +} + +""" +select columns of table "dataplatform_near_accounts.accounts" +""" +enum dataplatform_near_accounts_accounts_select_column { + """column name""" + account_id + + """column name""" + background_image + + """column name""" + block_height + + """column name""" + block_timestamp_ms + + """column name""" + description + + """column name""" + horizon_tnc + + """column name""" + image + + """column name""" + linktree + + """column name""" + name + + """column name""" + tags +} + +"""aggregate stddev on columns""" +type dataplatform_near_accounts_accounts_stddev_fields { + block_height: Float + block_timestamp_ms: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_accounts_accounts_stddev_pop_fields { + block_height: Float + block_timestamp_ms: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_accounts_accounts_stddev_samp_fields { + block_height: Float + block_timestamp_ms: Float +} + +""" +Streaming cursor of the table "dataplatform_near_accounts_accounts" +""" +input dataplatform_near_accounts_accounts_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_accounts_accounts_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_accounts_accounts_stream_cursor_value_input { + account_id: String + background_image: String + block_height: Int + block_timestamp_ms: bigint + description: String + horizon_tnc: Boolean + image: String + linktree: String + name: String + tags: String +} + +"""aggregate sum on columns""" +type dataplatform_near_accounts_accounts_sum_fields { + block_height: Int + block_timestamp_ms: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_accounts_accounts_var_pop_fields { + block_height: Float + block_timestamp_ms: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_accounts_accounts_var_samp_fields { + block_height: Float + block_timestamp_ms: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_accounts_accounts_variance_fields { + block_height: Float + block_timestamp_ms: Float +} + +""" +columns and relationships of "dataplatform_near_accounts.sys_logs" +""" +type dataplatform_near_accounts_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_accounts.sys_logs" +""" +type dataplatform_near_accounts_sys_logs_aggregate { + aggregate: dataplatform_near_accounts_sys_logs_aggregate_fields + nodes: [dataplatform_near_accounts_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_accounts.sys_logs" +""" +type dataplatform_near_accounts_sys_logs_aggregate_fields { + avg: dataplatform_near_accounts_sys_logs_avg_fields + count(columns: [dataplatform_near_accounts_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_accounts_sys_logs_max_fields + min: dataplatform_near_accounts_sys_logs_min_fields + stddev: dataplatform_near_accounts_sys_logs_stddev_fields + stddev_pop: dataplatform_near_accounts_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_accounts_sys_logs_stddev_samp_fields + sum: dataplatform_near_accounts_sys_logs_sum_fields + var_pop: dataplatform_near_accounts_sys_logs_var_pop_fields + var_samp: dataplatform_near_accounts_sys_logs_var_samp_fields + variance: dataplatform_near_accounts_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_accounts_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_accounts.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_accounts_sys_logs_bool_exp { + _and: [dataplatform_near_accounts_sys_logs_bool_exp!] + _not: dataplatform_near_accounts_sys_logs_bool_exp + _or: [dataplatform_near_accounts_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_accounts_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_accounts_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_accounts.sys_logs". +""" +input dataplatform_near_accounts_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_accounts.sys_logs" +""" +enum dataplatform_near_accounts_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_accounts_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_accounts_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_accounts_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_accounts_sys_logs" +""" +input dataplatform_near_accounts_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_accounts_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_accounts_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_accounts_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_accounts_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_accounts_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_accounts_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_accounts.sys_metadata" +""" +type dataplatform_near_accounts_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_accounts.sys_metadata" +""" +type dataplatform_near_accounts_sys_metadata_aggregate { + aggregate: dataplatform_near_accounts_sys_metadata_aggregate_fields + nodes: [dataplatform_near_accounts_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_accounts.sys_metadata" +""" +type dataplatform_near_accounts_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_accounts_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_accounts_sys_metadata_max_fields + min: dataplatform_near_accounts_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_accounts.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_accounts_sys_metadata_bool_exp { + _and: [dataplatform_near_accounts_sys_metadata_bool_exp!] + _not: dataplatform_near_accounts_sys_metadata_bool_exp + _or: [dataplatform_near_accounts_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_accounts_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_accounts_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_accounts.sys_metadata". +""" +input dataplatform_near_accounts_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_accounts.sys_metadata" +""" +enum dataplatform_near_accounts_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_accounts_sys_metadata" +""" +input dataplatform_near_accounts_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_accounts_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_accounts_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_components.metadata" +""" +type dataplatform_near_components_metadata { + block_height: bigint! + block_timestamp_ms: bigint! + code: String! + component_author_id: String! + component_id: String! + component_name: String! + description: String + fork_count: Int! + fork_of_block_height: bigint + fork_of_source: String + image_ipfs_cid: String + name: String + star_count: Int! + tags: String + website: String +} + +""" +aggregated selection of "dataplatform_near_components.metadata" +""" +type dataplatform_near_components_metadata_aggregate { + aggregate: dataplatform_near_components_metadata_aggregate_fields + nodes: [dataplatform_near_components_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_components.metadata" +""" +type dataplatform_near_components_metadata_aggregate_fields { + avg: dataplatform_near_components_metadata_avg_fields + count(columns: [dataplatform_near_components_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_components_metadata_max_fields + min: dataplatform_near_components_metadata_min_fields + stddev: dataplatform_near_components_metadata_stddev_fields + stddev_pop: dataplatform_near_components_metadata_stddev_pop_fields + stddev_samp: dataplatform_near_components_metadata_stddev_samp_fields + sum: dataplatform_near_components_metadata_sum_fields + var_pop: dataplatform_near_components_metadata_var_pop_fields + var_samp: dataplatform_near_components_metadata_var_samp_fields + variance: dataplatform_near_components_metadata_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_components_metadata_avg_fields { + block_height: Float + block_timestamp_ms: Float + fork_count: Float + fork_of_block_height: Float + star_count: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_components.metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_components_metadata_bool_exp { + _and: [dataplatform_near_components_metadata_bool_exp!] + _not: dataplatform_near_components_metadata_bool_exp + _or: [dataplatform_near_components_metadata_bool_exp!] + block_height: bigint_comparison_exp + block_timestamp_ms: bigint_comparison_exp + code: String_comparison_exp + component_author_id: String_comparison_exp + component_id: String_comparison_exp + component_name: String_comparison_exp + description: String_comparison_exp + fork_count: Int_comparison_exp + fork_of_block_height: bigint_comparison_exp + fork_of_source: String_comparison_exp + image_ipfs_cid: String_comparison_exp + name: String_comparison_exp + star_count: Int_comparison_exp + tags: String_comparison_exp + website: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_components_metadata_max_fields { + block_height: bigint + block_timestamp_ms: bigint + code: String + component_author_id: String + component_id: String + component_name: String + description: String + fork_count: Int + fork_of_block_height: bigint + fork_of_source: String + image_ipfs_cid: String + name: String + star_count: Int + tags: String + website: String +} + +"""aggregate min on columns""" +type dataplatform_near_components_metadata_min_fields { + block_height: bigint + block_timestamp_ms: bigint + code: String + component_author_id: String + component_id: String + component_name: String + description: String + fork_count: Int + fork_of_block_height: bigint + fork_of_source: String + image_ipfs_cid: String + name: String + star_count: Int + tags: String + website: String +} + +""" +Ordering options when selecting data from "dataplatform_near_components.metadata". +""" +input dataplatform_near_components_metadata_order_by { + block_height: order_by + block_timestamp_ms: order_by + code: order_by + component_author_id: order_by + component_id: order_by + component_name: order_by + description: order_by + fork_count: order_by + fork_of_block_height: order_by + fork_of_source: order_by + image_ipfs_cid: order_by + name: order_by + star_count: order_by + tags: order_by + website: order_by +} + +""" +select columns of table "dataplatform_near_components.metadata" +""" +enum dataplatform_near_components_metadata_select_column { + """column name""" + block_height + + """column name""" + block_timestamp_ms + + """column name""" + code + + """column name""" + component_author_id + + """column name""" + component_id + + """column name""" + component_name + + """column name""" + description + + """column name""" + fork_count + + """column name""" + fork_of_block_height + + """column name""" + fork_of_source + + """column name""" + image_ipfs_cid + + """column name""" + name + + """column name""" + star_count + + """column name""" + tags + + """column name""" + website +} + +"""aggregate stddev on columns""" +type dataplatform_near_components_metadata_stddev_fields { + block_height: Float + block_timestamp_ms: Float + fork_count: Float + fork_of_block_height: Float + star_count: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_components_metadata_stddev_pop_fields { + block_height: Float + block_timestamp_ms: Float + fork_count: Float + fork_of_block_height: Float + star_count: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_components_metadata_stddev_samp_fields { + block_height: Float + block_timestamp_ms: Float + fork_count: Float + fork_of_block_height: Float + star_count: Float +} + +""" +Streaming cursor of the table "dataplatform_near_components_metadata" +""" +input dataplatform_near_components_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_components_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_components_metadata_stream_cursor_value_input { + block_height: bigint + block_timestamp_ms: bigint + code: String + component_author_id: String + component_id: String + component_name: String + description: String + fork_count: Int + fork_of_block_height: bigint + fork_of_source: String + image_ipfs_cid: String + name: String + star_count: Int + tags: String + website: String +} + +"""aggregate sum on columns""" +type dataplatform_near_components_metadata_sum_fields { + block_height: bigint + block_timestamp_ms: bigint + fork_count: Int + fork_of_block_height: bigint + star_count: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_components_metadata_var_pop_fields { + block_height: Float + block_timestamp_ms: Float + fork_count: Float + fork_of_block_height: Float + star_count: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_components_metadata_var_samp_fields { + block_height: Float + block_timestamp_ms: Float + fork_count: Float + fork_of_block_height: Float + star_count: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_components_metadata_variance_fields { + block_height: Float + block_timestamp_ms: Float + fork_count: Float + fork_of_block_height: Float + star_count: Float +} + +""" +columns and relationships of "dataplatform_near_components.sys_logs" +""" +type dataplatform_near_components_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_components.sys_logs" +""" +type dataplatform_near_components_sys_logs_aggregate { + aggregate: dataplatform_near_components_sys_logs_aggregate_fields + nodes: [dataplatform_near_components_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_components.sys_logs" +""" +type dataplatform_near_components_sys_logs_aggregate_fields { + avg: dataplatform_near_components_sys_logs_avg_fields + count(columns: [dataplatform_near_components_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_components_sys_logs_max_fields + min: dataplatform_near_components_sys_logs_min_fields + stddev: dataplatform_near_components_sys_logs_stddev_fields + stddev_pop: dataplatform_near_components_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_components_sys_logs_stddev_samp_fields + sum: dataplatform_near_components_sys_logs_sum_fields + var_pop: dataplatform_near_components_sys_logs_var_pop_fields + var_samp: dataplatform_near_components_sys_logs_var_samp_fields + variance: dataplatform_near_components_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_components_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_components.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_components_sys_logs_bool_exp { + _and: [dataplatform_near_components_sys_logs_bool_exp!] + _not: dataplatform_near_components_sys_logs_bool_exp + _or: [dataplatform_near_components_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_components_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_components_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_components.sys_logs". +""" +input dataplatform_near_components_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_components.sys_logs" +""" +enum dataplatform_near_components_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_components_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_components_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_components_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_components_sys_logs" +""" +input dataplatform_near_components_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_components_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_components_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_components_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_components_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_components_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_components_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_components.sys_metadata" +""" +type dataplatform_near_components_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_components.sys_metadata" +""" +type dataplatform_near_components_sys_metadata_aggregate { + aggregate: dataplatform_near_components_sys_metadata_aggregate_fields + nodes: [dataplatform_near_components_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_components.sys_metadata" +""" +type dataplatform_near_components_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_components_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_components_sys_metadata_max_fields + min: dataplatform_near_components_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_components.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_components_sys_metadata_bool_exp { + _and: [dataplatform_near_components_sys_metadata_bool_exp!] + _not: dataplatform_near_components_sys_metadata_bool_exp + _or: [dataplatform_near_components_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_components_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_components_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_components.sys_metadata". +""" +input dataplatform_near_components_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_components.sys_metadata" +""" +enum dataplatform_near_components_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_components_sys_metadata" +""" +input dataplatform_near_components_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_components_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_components_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_components.versions" +""" +type dataplatform_near_components_versions { + block_height: Int! + block_timestamp_ms: bigint! + code: String! + component_author_id: String! + component_name: String! + id: Int! + lines_added: Int! + lines_removed: Int! + receipt_id: String! +} + +""" +aggregated selection of "dataplatform_near_components.versions" +""" +type dataplatform_near_components_versions_aggregate { + aggregate: dataplatform_near_components_versions_aggregate_fields + nodes: [dataplatform_near_components_versions!]! +} + +""" +aggregate fields of "dataplatform_near_components.versions" +""" +type dataplatform_near_components_versions_aggregate_fields { + avg: dataplatform_near_components_versions_avg_fields + count(columns: [dataplatform_near_components_versions_select_column!], distinct: Boolean): Int! + max: dataplatform_near_components_versions_max_fields + min: dataplatform_near_components_versions_min_fields + stddev: dataplatform_near_components_versions_stddev_fields + stddev_pop: dataplatform_near_components_versions_stddev_pop_fields + stddev_samp: dataplatform_near_components_versions_stddev_samp_fields + sum: dataplatform_near_components_versions_sum_fields + var_pop: dataplatform_near_components_versions_var_pop_fields + var_samp: dataplatform_near_components_versions_var_samp_fields + variance: dataplatform_near_components_versions_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_components_versions_avg_fields { + block_height: Float + block_timestamp_ms: Float + id: Float + lines_added: Float + lines_removed: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_components.versions". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_components_versions_bool_exp { + _and: [dataplatform_near_components_versions_bool_exp!] + _not: dataplatform_near_components_versions_bool_exp + _or: [dataplatform_near_components_versions_bool_exp!] + block_height: Int_comparison_exp + block_timestamp_ms: bigint_comparison_exp + code: String_comparison_exp + component_author_id: String_comparison_exp + component_name: String_comparison_exp + id: Int_comparison_exp + lines_added: Int_comparison_exp + lines_removed: Int_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_components_versions_max_fields { + block_height: Int + block_timestamp_ms: bigint + code: String + component_author_id: String + component_name: String + id: Int + lines_added: Int + lines_removed: Int + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_components_versions_min_fields { + block_height: Int + block_timestamp_ms: bigint + code: String + component_author_id: String + component_name: String + id: Int + lines_added: Int + lines_removed: Int + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_components.versions". +""" +input dataplatform_near_components_versions_order_by { + block_height: order_by + block_timestamp_ms: order_by + code: order_by + component_author_id: order_by + component_name: order_by + id: order_by + lines_added: order_by + lines_removed: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_components.versions" +""" +enum dataplatform_near_components_versions_select_column { + """column name""" + block_height + + """column name""" + block_timestamp_ms + + """column name""" + code + + """column name""" + component_author_id + + """column name""" + component_name + + """column name""" + id + + """column name""" + lines_added + + """column name""" + lines_removed + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_components_versions_stddev_fields { + block_height: Float + block_timestamp_ms: Float + id: Float + lines_added: Float + lines_removed: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_components_versions_stddev_pop_fields { + block_height: Float + block_timestamp_ms: Float + id: Float + lines_added: Float + lines_removed: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_components_versions_stddev_samp_fields { + block_height: Float + block_timestamp_ms: Float + id: Float + lines_added: Float + lines_removed: Float +} + +""" +Streaming cursor of the table "dataplatform_near_components_versions" +""" +input dataplatform_near_components_versions_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_components_versions_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_components_versions_stream_cursor_value_input { + block_height: Int + block_timestamp_ms: bigint + code: String + component_author_id: String + component_name: String + id: Int + lines_added: Int + lines_removed: Int + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_components_versions_sum_fields { + block_height: Int + block_timestamp_ms: bigint + id: Int + lines_added: Int + lines_removed: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_components_versions_var_pop_fields { + block_height: Float + block_timestamp_ms: Float + id: Float + lines_added: Float + lines_removed: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_components_versions_var_samp_fields { + block_height: Float + block_timestamp_ms: Float + id: Float + lines_added: Float + lines_removed: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_components_versions_variance_fields { + block_height: Float + block_timestamp_ms: Float + id: Float + lines_added: Float + lines_removed: Float +} + +""" +columns and relationships of "dataplatform_near_entities.entities" +""" +type dataplatform_near_entities_entities { + account_id: String! + attributes( + """JSON select path""" + path: String + ): jsonb + created_at: timestamptz! + description: String + display_name: String + entity_type: String! + id: Int! + logo_url: String + name: String! + namespace: String! + stars: Int! + tags: [String!] + updated_at: timestamptz! +} + +""" +aggregated selection of "dataplatform_near_entities.entities" +""" +type dataplatform_near_entities_entities_aggregate { + aggregate: dataplatform_near_entities_entities_aggregate_fields + nodes: [dataplatform_near_entities_entities!]! +} + +""" +aggregate fields of "dataplatform_near_entities.entities" +""" +type dataplatform_near_entities_entities_aggregate_fields { + avg: dataplatform_near_entities_entities_avg_fields + count(columns: [dataplatform_near_entities_entities_select_column!], distinct: Boolean): Int! + max: dataplatform_near_entities_entities_max_fields + min: dataplatform_near_entities_entities_min_fields + stddev: dataplatform_near_entities_entities_stddev_fields + stddev_pop: dataplatform_near_entities_entities_stddev_pop_fields + stddev_samp: dataplatform_near_entities_entities_stddev_samp_fields + sum: dataplatform_near_entities_entities_sum_fields + var_pop: dataplatform_near_entities_entities_var_pop_fields + var_samp: dataplatform_near_entities_entities_var_samp_fields + variance: dataplatform_near_entities_entities_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_entities_entities_avg_fields { + id: Float + stars: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_entities.entities". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_entities_entities_bool_exp { + _and: [dataplatform_near_entities_entities_bool_exp!] + _not: dataplatform_near_entities_entities_bool_exp + _or: [dataplatform_near_entities_entities_bool_exp!] + account_id: String_comparison_exp + attributes: jsonb_comparison_exp + created_at: timestamptz_comparison_exp + description: String_comparison_exp + display_name: String_comparison_exp + entity_type: String_comparison_exp + id: Int_comparison_exp + logo_url: String_comparison_exp + name: String_comparison_exp + namespace: String_comparison_exp + stars: Int_comparison_exp + tags: String_array_comparison_exp + updated_at: timestamptz_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_entities_entities_max_fields { + account_id: String + created_at: timestamptz + description: String + display_name: String + entity_type: String + id: Int + logo_url: String + name: String + namespace: String + stars: Int + tags: [String!] + updated_at: timestamptz +} + +"""aggregate min on columns""" +type dataplatform_near_entities_entities_min_fields { + account_id: String + created_at: timestamptz + description: String + display_name: String + entity_type: String + id: Int + logo_url: String + name: String + namespace: String + stars: Int + tags: [String!] + updated_at: timestamptz +} + +""" +Ordering options when selecting data from "dataplatform_near_entities.entities". +""" +input dataplatform_near_entities_entities_order_by { + account_id: order_by + attributes: order_by + created_at: order_by + description: order_by + display_name: order_by + entity_type: order_by + id: order_by + logo_url: order_by + name: order_by + namespace: order_by + stars: order_by + tags: order_by + updated_at: order_by +} + +""" +select columns of table "dataplatform_near_entities.entities" +""" +enum dataplatform_near_entities_entities_select_column { + """column name""" + account_id + + """column name""" + attributes + + """column name""" + created_at + + """column name""" + description + + """column name""" + display_name + + """column name""" + entity_type + + """column name""" + id + + """column name""" + logo_url + + """column name""" + name + + """column name""" + namespace + + """column name""" + stars + + """column name""" + tags + + """column name""" + updated_at +} + +"""aggregate stddev on columns""" +type dataplatform_near_entities_entities_stddev_fields { + id: Float + stars: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_entities_entities_stddev_pop_fields { + id: Float + stars: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_entities_entities_stddev_samp_fields { + id: Float + stars: Float +} + +""" +Streaming cursor of the table "dataplatform_near_entities_entities" +""" +input dataplatform_near_entities_entities_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_entities_entities_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_entities_entities_stream_cursor_value_input { + account_id: String + attributes: jsonb + created_at: timestamptz + description: String + display_name: String + entity_type: String + id: Int + logo_url: String + name: String + namespace: String + stars: Int + tags: [String!] + updated_at: timestamptz +} + +"""aggregate sum on columns""" +type dataplatform_near_entities_entities_sum_fields { + id: Int + stars: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_entities_entities_var_pop_fields { + id: Float + stars: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_entities_entities_var_samp_fields { + id: Float + stars: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_entities_entities_variance_fields { + id: Float + stars: Float +} + +""" +columns and relationships of "dataplatform_near_entities.sys_logs" +""" +type dataplatform_near_entities_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_entities.sys_logs" +""" +type dataplatform_near_entities_sys_logs_aggregate { + aggregate: dataplatform_near_entities_sys_logs_aggregate_fields + nodes: [dataplatform_near_entities_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_entities.sys_logs" +""" +type dataplatform_near_entities_sys_logs_aggregate_fields { + avg: dataplatform_near_entities_sys_logs_avg_fields + count(columns: [dataplatform_near_entities_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_entities_sys_logs_max_fields + min: dataplatform_near_entities_sys_logs_min_fields + stddev: dataplatform_near_entities_sys_logs_stddev_fields + stddev_pop: dataplatform_near_entities_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_entities_sys_logs_stddev_samp_fields + sum: dataplatform_near_entities_sys_logs_sum_fields + var_pop: dataplatform_near_entities_sys_logs_var_pop_fields + var_samp: dataplatform_near_entities_sys_logs_var_samp_fields + variance: dataplatform_near_entities_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_entities_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_entities.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_entities_sys_logs_bool_exp { + _and: [dataplatform_near_entities_sys_logs_bool_exp!] + _not: dataplatform_near_entities_sys_logs_bool_exp + _or: [dataplatform_near_entities_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_entities_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_entities_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_entities.sys_logs". +""" +input dataplatform_near_entities_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_entities.sys_logs" +""" +enum dataplatform_near_entities_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_entities_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_entities_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_entities_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_entities_sys_logs" +""" +input dataplatform_near_entities_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_entities_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_entities_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_entities_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_entities_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_entities_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_entities_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_entities.sys_metadata" +""" +type dataplatform_near_entities_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_entities.sys_metadata" +""" +type dataplatform_near_entities_sys_metadata_aggregate { + aggregate: dataplatform_near_entities_sys_metadata_aggregate_fields + nodes: [dataplatform_near_entities_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_entities.sys_metadata" +""" +type dataplatform_near_entities_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_entities_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_entities_sys_metadata_max_fields + min: dataplatform_near_entities_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_entities.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_entities_sys_metadata_bool_exp { + _and: [dataplatform_near_entities_sys_metadata_bool_exp!] + _not: dataplatform_near_entities_sys_metadata_bool_exp + _or: [dataplatform_near_entities_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_entities_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_entities_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_entities.sys_metadata". +""" +input dataplatform_near_entities_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_entities.sys_metadata" +""" +enum dataplatform_near_entities_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_entities_sys_metadata" +""" +input dataplatform_near_entities_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_entities_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_entities_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_entities.tags" +""" +type dataplatform_near_entities_tags { + count: bigint + entity_type: String + namespace: String + tag: String +} + +""" +aggregated selection of "dataplatform_near_entities.tags" +""" +type dataplatform_near_entities_tags_aggregate { + aggregate: dataplatform_near_entities_tags_aggregate_fields + nodes: [dataplatform_near_entities_tags!]! +} + +""" +aggregate fields of "dataplatform_near_entities.tags" +""" +type dataplatform_near_entities_tags_aggregate_fields { + avg: dataplatform_near_entities_tags_avg_fields + count(columns: [dataplatform_near_entities_tags_select_column!], distinct: Boolean): Int! + max: dataplatform_near_entities_tags_max_fields + min: dataplatform_near_entities_tags_min_fields + stddev: dataplatform_near_entities_tags_stddev_fields + stddev_pop: dataplatform_near_entities_tags_stddev_pop_fields + stddev_samp: dataplatform_near_entities_tags_stddev_samp_fields + sum: dataplatform_near_entities_tags_sum_fields + var_pop: dataplatform_near_entities_tags_var_pop_fields + var_samp: dataplatform_near_entities_tags_var_samp_fields + variance: dataplatform_near_entities_tags_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_entities_tags_avg_fields { + count: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_entities.tags". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_entities_tags_bool_exp { + _and: [dataplatform_near_entities_tags_bool_exp!] + _not: dataplatform_near_entities_tags_bool_exp + _or: [dataplatform_near_entities_tags_bool_exp!] + count: bigint_comparison_exp + entity_type: String_comparison_exp + namespace: String_comparison_exp + tag: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_entities_tags_max_fields { + count: bigint + entity_type: String + namespace: String + tag: String +} + +"""aggregate min on columns""" +type dataplatform_near_entities_tags_min_fields { + count: bigint + entity_type: String + namespace: String + tag: String +} + +""" +Ordering options when selecting data from "dataplatform_near_entities.tags". +""" +input dataplatform_near_entities_tags_order_by { + count: order_by + entity_type: order_by + namespace: order_by + tag: order_by +} + +""" +select columns of table "dataplatform_near_entities.tags" +""" +enum dataplatform_near_entities_tags_select_column { + """column name""" + count + + """column name""" + entity_type + + """column name""" + namespace + + """column name""" + tag +} + +"""aggregate stddev on columns""" +type dataplatform_near_entities_tags_stddev_fields { + count: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_entities_tags_stddev_pop_fields { + count: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_entities_tags_stddev_samp_fields { + count: Float +} + +""" +Streaming cursor of the table "dataplatform_near_entities_tags" +""" +input dataplatform_near_entities_tags_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_entities_tags_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_entities_tags_stream_cursor_value_input { + count: bigint + entity_type: String + namespace: String + tag: String +} + +"""aggregate sum on columns""" +type dataplatform_near_entities_tags_sum_fields { + count: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_entities_tags_var_pop_fields { + count: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_entities_tags_var_samp_fields { + count: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_entities_tags_variance_fields { + count: Float +} + +""" +columns and relationships of "dataplatform_near_feed.moderated_comments" +""" +type dataplatform_near_feed_moderated_comments { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + + """An object relationship""" + post: dataplatform_near_feed_moderated_posts + post_id: Int + receipt_id: String +} + +""" +aggregated selection of "dataplatform_near_feed.moderated_comments" +""" +type dataplatform_near_feed_moderated_comments_aggregate { + aggregate: dataplatform_near_feed_moderated_comments_aggregate_fields + nodes: [dataplatform_near_feed_moderated_comments!]! +} + +input dataplatform_near_feed_moderated_comments_aggregate_bool_exp { + count: dataplatform_near_feed_moderated_comments_aggregate_bool_exp_count +} + +input dataplatform_near_feed_moderated_comments_aggregate_bool_exp_count { + arguments: [dataplatform_near_feed_moderated_comments_select_column!] + distinct: Boolean + filter: dataplatform_near_feed_moderated_comments_bool_exp + predicate: Int_comparison_exp! +} + +""" +aggregate fields of "dataplatform_near_feed.moderated_comments" +""" +type dataplatform_near_feed_moderated_comments_aggregate_fields { + avg: dataplatform_near_feed_moderated_comments_avg_fields + count(columns: [dataplatform_near_feed_moderated_comments_select_column!], distinct: Boolean): Int! + max: dataplatform_near_feed_moderated_comments_max_fields + min: dataplatform_near_feed_moderated_comments_min_fields + stddev: dataplatform_near_feed_moderated_comments_stddev_fields + stddev_pop: dataplatform_near_feed_moderated_comments_stddev_pop_fields + stddev_samp: dataplatform_near_feed_moderated_comments_stddev_samp_fields + sum: dataplatform_near_feed_moderated_comments_sum_fields + var_pop: dataplatform_near_feed_moderated_comments_var_pop_fields + var_samp: dataplatform_near_feed_moderated_comments_var_samp_fields + variance: dataplatform_near_feed_moderated_comments_variance_fields +} + +""" +order by aggregate values of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_aggregate_order_by { + avg: dataplatform_near_feed_moderated_comments_avg_order_by + count: order_by + max: dataplatform_near_feed_moderated_comments_max_order_by + min: dataplatform_near_feed_moderated_comments_min_order_by + stddev: dataplatform_near_feed_moderated_comments_stddev_order_by + stddev_pop: dataplatform_near_feed_moderated_comments_stddev_pop_order_by + stddev_samp: dataplatform_near_feed_moderated_comments_stddev_samp_order_by + sum: dataplatform_near_feed_moderated_comments_sum_order_by + var_pop: dataplatform_near_feed_moderated_comments_var_pop_order_by + var_samp: dataplatform_near_feed_moderated_comments_var_samp_order_by + variance: dataplatform_near_feed_moderated_comments_variance_order_by +} + +"""aggregate avg on columns""" +type dataplatform_near_feed_moderated_comments_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by avg() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_avg_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_feed.moderated_comments". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_feed_moderated_comments_bool_exp { + _and: [dataplatform_near_feed_moderated_comments_bool_exp!] + _not: dataplatform_near_feed_moderated_comments_bool_exp + _or: [dataplatform_near_feed_moderated_comments_bool_exp!] + account_id: String_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + content: String_comparison_exp + id: Int_comparison_exp + post: dataplatform_near_feed_moderated_posts_bool_exp + post_id: Int_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_feed_moderated_comments_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +""" +order by max() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_max_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post_id: order_by + receipt_id: order_by +} + +"""aggregate min on columns""" +type dataplatform_near_feed_moderated_comments_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +""" +order by min() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_min_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post_id: order_by + receipt_id: order_by +} + +""" +Ordering options when selecting data from "dataplatform_near_feed.moderated_comments". +""" +input dataplatform_near_feed_moderated_comments_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post: dataplatform_near_feed_moderated_posts_order_by + post_id: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_feed.moderated_comments" +""" +enum dataplatform_near_feed_moderated_comments_select_column { + """column name""" + account_id + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + post_id + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_feed_moderated_comments_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_stddev_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_feed_moderated_comments_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev_pop() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_stddev_pop_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_feed_moderated_comments_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev_samp() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_stddev_samp_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +Streaming cursor of the table "dataplatform_near_feed_moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_feed_moderated_comments_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_feed_moderated_comments_stream_cursor_value_input { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_feed_moderated_comments_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int +} + +""" +order by sum() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_sum_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate var_pop on columns""" +type dataplatform_near_feed_moderated_comments_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by var_pop() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_var_pop_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate var_samp on columns""" +type dataplatform_near_feed_moderated_comments_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by var_samp() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_var_samp_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate variance on columns""" +type dataplatform_near_feed_moderated_comments_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by variance() on columns of table "dataplatform_near_feed.moderated_comments" +""" +input dataplatform_near_feed_moderated_comments_variance_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +columns and relationships of "dataplatform_near_feed.moderated_posts" +""" +type dataplatform_near_feed_moderated_posts { + """An object relationship""" + account: dataplatform_near_accounts_accounts + account_id: String + accounts_liked( + """JSON select path""" + path: String + ): jsonb + block_height: numeric + block_timestamp: numeric + + """An array relationship""" + comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): [dataplatform_near_feed_moderated_comments!]! + + """An aggregate relationship""" + comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): dataplatform_near_feed_moderated_comments_aggregate! + content: String + id: Int + last_comment_timestamp: numeric + + """An array relationship""" + post_likes( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): [dataplatform_near_social_feed_post_likes!]! + + """An aggregate relationship""" + post_likes_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): dataplatform_near_social_feed_post_likes_aggregate! + receipt_id: String + + """An object relationship""" + verifications: dataplatform_near_verifications_account +} + +""" +aggregated selection of "dataplatform_near_feed.moderated_posts" +""" +type dataplatform_near_feed_moderated_posts_aggregate { + aggregate: dataplatform_near_feed_moderated_posts_aggregate_fields + nodes: [dataplatform_near_feed_moderated_posts!]! +} + +""" +aggregate fields of "dataplatform_near_feed.moderated_posts" +""" +type dataplatform_near_feed_moderated_posts_aggregate_fields { + avg: dataplatform_near_feed_moderated_posts_avg_fields + count(columns: [dataplatform_near_feed_moderated_posts_select_column!], distinct: Boolean): Int! + max: dataplatform_near_feed_moderated_posts_max_fields + min: dataplatform_near_feed_moderated_posts_min_fields + stddev: dataplatform_near_feed_moderated_posts_stddev_fields + stddev_pop: dataplatform_near_feed_moderated_posts_stddev_pop_fields + stddev_samp: dataplatform_near_feed_moderated_posts_stddev_samp_fields + sum: dataplatform_near_feed_moderated_posts_sum_fields + var_pop: dataplatform_near_feed_moderated_posts_var_pop_fields + var_samp: dataplatform_near_feed_moderated_posts_var_samp_fields + variance: dataplatform_near_feed_moderated_posts_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_feed_moderated_posts_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_feed.moderated_posts". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_feed_moderated_posts_bool_exp { + _and: [dataplatform_near_feed_moderated_posts_bool_exp!] + _not: dataplatform_near_feed_moderated_posts_bool_exp + _or: [dataplatform_near_feed_moderated_posts_bool_exp!] + account: dataplatform_near_accounts_accounts_bool_exp + account_id: String_comparison_exp + accounts_liked: jsonb_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + comments: dataplatform_near_feed_moderated_comments_bool_exp + comments_aggregate: dataplatform_near_feed_moderated_comments_aggregate_bool_exp + content: String_comparison_exp + id: Int_comparison_exp + last_comment_timestamp: numeric_comparison_exp + post_likes: dataplatform_near_social_feed_post_likes_bool_exp + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_bool_exp + receipt_id: String_comparison_exp + verifications: dataplatform_near_verifications_account_bool_exp +} + +"""aggregate max on columns""" +type dataplatform_near_feed_moderated_posts_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_feed_moderated_posts_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_feed.moderated_posts". +""" +input dataplatform_near_feed_moderated_posts_order_by { + account: dataplatform_near_accounts_accounts_order_by + account_id: order_by + accounts_liked: order_by + block_height: order_by + block_timestamp: order_by + comments_aggregate: dataplatform_near_feed_moderated_comments_aggregate_order_by + content: order_by + id: order_by + last_comment_timestamp: order_by + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_order_by + receipt_id: order_by + verifications: dataplatform_near_verifications_account_order_by +} + +""" +select columns of table "dataplatform_near_feed.moderated_posts" +""" +enum dataplatform_near_feed_moderated_posts_select_column { + """column name""" + account_id + + """column name""" + accounts_liked + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + last_comment_timestamp + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_feed_moderated_posts_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_feed_moderated_posts_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_feed_moderated_posts_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Streaming cursor of the table "dataplatform_near_feed_moderated_posts" +""" +input dataplatform_near_feed_moderated_posts_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_feed_moderated_posts_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_feed_moderated_posts_stream_cursor_value_input { + account_id: String + accounts_liked: jsonb + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_feed_moderated_posts_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + last_comment_timestamp: numeric +} + +"""aggregate var_pop on columns""" +type dataplatform_near_feed_moderated_posts_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_feed_moderated_posts_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_feed_moderated_posts_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +columns and relationships of "dataplatform_near_feed.moderated_posts_with_reposts_feed" +""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed { + """An object relationship""" + account: dataplatform_near_accounts_accounts + account_id: String + accounts_liked( + """JSON select path""" + path: String + ): jsonb + block_height: numeric + block_timestamp: numeric + + """An array relationship""" + comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): [dataplatform_near_feed_moderated_comments!]! + + """An aggregate relationship""" + comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): dataplatform_near_feed_moderated_comments_aggregate! + content: String + id: Int + last_comment_timestamp: numeric + + """An array relationship""" + post_likes( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): [dataplatform_near_social_feed_post_likes!]! + + """An aggregate relationship""" + post_likes_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): dataplatform_near_social_feed_post_likes_aggregate! + receipt_id: String + + """An object relationship""" + verifications: dataplatform_near_verifications_account +} + +""" +aggregated selection of "dataplatform_near_feed.moderated_posts_with_reposts_feed" +""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_aggregate { + aggregate: dataplatform_near_feed_moderated_posts_with_reposts_feed_aggregate_fields + nodes: [dataplatform_near_feed_moderated_posts_with_reposts_feed!]! +} + +""" +aggregate fields of "dataplatform_near_feed.moderated_posts_with_reposts_feed" +""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_aggregate_fields { + avg: dataplatform_near_feed_moderated_posts_with_reposts_feed_avg_fields + count(columns: [dataplatform_near_feed_moderated_posts_with_reposts_feed_select_column!], distinct: Boolean): Int! + max: dataplatform_near_feed_moderated_posts_with_reposts_feed_max_fields + min: dataplatform_near_feed_moderated_posts_with_reposts_feed_min_fields + stddev: dataplatform_near_feed_moderated_posts_with_reposts_feed_stddev_fields + stddev_pop: dataplatform_near_feed_moderated_posts_with_reposts_feed_stddev_pop_fields + stddev_samp: dataplatform_near_feed_moderated_posts_with_reposts_feed_stddev_samp_fields + sum: dataplatform_near_feed_moderated_posts_with_reposts_feed_sum_fields + var_pop: dataplatform_near_feed_moderated_posts_with_reposts_feed_var_pop_fields + var_samp: dataplatform_near_feed_moderated_posts_with_reposts_feed_var_samp_fields + variance: dataplatform_near_feed_moderated_posts_with_reposts_feed_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_feed.moderated_posts_with_reposts_feed". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp { + _and: [dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp!] + _not: dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp + _or: [dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp!] + account: dataplatform_near_accounts_accounts_bool_exp + account_id: String_comparison_exp + accounts_liked: jsonb_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + comments: dataplatform_near_feed_moderated_comments_bool_exp + comments_aggregate: dataplatform_near_feed_moderated_comments_aggregate_bool_exp + content: String_comparison_exp + id: Int_comparison_exp + last_comment_timestamp: numeric_comparison_exp + post_likes: dataplatform_near_social_feed_post_likes_bool_exp + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_bool_exp + receipt_id: String_comparison_exp + verifications: dataplatform_near_verifications_account_bool_exp +} + +"""aggregate max on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_feed.moderated_posts_with_reposts_feed". +""" +input dataplatform_near_feed_moderated_posts_with_reposts_feed_order_by { + account: dataplatform_near_accounts_accounts_order_by + account_id: order_by + accounts_liked: order_by + block_height: order_by + block_timestamp: order_by + comments_aggregate: dataplatform_near_feed_moderated_comments_aggregate_order_by + content: order_by + id: order_by + last_comment_timestamp: order_by + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_order_by + receipt_id: order_by + verifications: dataplatform_near_verifications_account_order_by +} + +""" +select columns of table "dataplatform_near_feed.moderated_posts_with_reposts_feed" +""" +enum dataplatform_near_feed_moderated_posts_with_reposts_feed_select_column { + """column name""" + account_id + + """column name""" + accounts_liked + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + last_comment_timestamp + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Streaming cursor of the table "dataplatform_near_feed_moderated_posts_with_reposts_feed" +""" +input dataplatform_near_feed_moderated_posts_with_reposts_feed_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_feed_moderated_posts_with_reposts_feed_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_feed_moderated_posts_with_reposts_feed_stream_cursor_value_input { + account_id: String + accounts_liked: jsonb + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + last_comment_timestamp: numeric +} + +"""aggregate var_pop on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_feed_moderated_posts_with_reposts_feed_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +columns and relationships of "dataplatform_near_feed.promoted_blog_posts" +""" +type dataplatform_near_feed_promoted_blog_posts { + account_id: String + accounts_liked( + """JSON select path""" + path: String + ): jsonb + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + promote_block_height: numeric + promoter_account_id: String + promotion_type: String + receipt_id: String +} + +""" +aggregated selection of "dataplatform_near_feed.promoted_blog_posts" +""" +type dataplatform_near_feed_promoted_blog_posts_aggregate { + aggregate: dataplatform_near_feed_promoted_blog_posts_aggregate_fields + nodes: [dataplatform_near_feed_promoted_blog_posts!]! +} + +""" +aggregate fields of "dataplatform_near_feed.promoted_blog_posts" +""" +type dataplatform_near_feed_promoted_blog_posts_aggregate_fields { + avg: dataplatform_near_feed_promoted_blog_posts_avg_fields + count(columns: [dataplatform_near_feed_promoted_blog_posts_select_column!], distinct: Boolean): Int! + max: dataplatform_near_feed_promoted_blog_posts_max_fields + min: dataplatform_near_feed_promoted_blog_posts_min_fields + stddev: dataplatform_near_feed_promoted_blog_posts_stddev_fields + stddev_pop: dataplatform_near_feed_promoted_blog_posts_stddev_pop_fields + stddev_samp: dataplatform_near_feed_promoted_blog_posts_stddev_samp_fields + sum: dataplatform_near_feed_promoted_blog_posts_sum_fields + var_pop: dataplatform_near_feed_promoted_blog_posts_var_pop_fields + var_samp: dataplatform_near_feed_promoted_blog_posts_var_samp_fields + variance: dataplatform_near_feed_promoted_blog_posts_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_feed_promoted_blog_posts_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float + promote_block_height: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_feed.promoted_blog_posts". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_feed_promoted_blog_posts_bool_exp { + _and: [dataplatform_near_feed_promoted_blog_posts_bool_exp!] + _not: dataplatform_near_feed_promoted_blog_posts_bool_exp + _or: [dataplatform_near_feed_promoted_blog_posts_bool_exp!] + account_id: String_comparison_exp + accounts_liked: jsonb_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + content: String_comparison_exp + id: Int_comparison_exp + last_comment_timestamp: numeric_comparison_exp + promote_block_height: numeric_comparison_exp + promoter_account_id: String_comparison_exp + promotion_type: String_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_feed_promoted_blog_posts_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + promote_block_height: numeric + promoter_account_id: String + promotion_type: String + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_feed_promoted_blog_posts_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + promote_block_height: numeric + promoter_account_id: String + promotion_type: String + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_feed.promoted_blog_posts". +""" +input dataplatform_near_feed_promoted_blog_posts_order_by { + account_id: order_by + accounts_liked: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + last_comment_timestamp: order_by + promote_block_height: order_by + promoter_account_id: order_by + promotion_type: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_feed.promoted_blog_posts" +""" +enum dataplatform_near_feed_promoted_blog_posts_select_column { + """column name""" + account_id + + """column name""" + accounts_liked + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + last_comment_timestamp + + """column name""" + promote_block_height + + """column name""" + promoter_account_id + + """column name""" + promotion_type + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_feed_promoted_blog_posts_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float + promote_block_height: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_feed_promoted_blog_posts_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float + promote_block_height: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_feed_promoted_blog_posts_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float + promote_block_height: Float +} + +""" +Streaming cursor of the table "dataplatform_near_feed_promoted_blog_posts" +""" +input dataplatform_near_feed_promoted_blog_posts_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_feed_promoted_blog_posts_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_feed_promoted_blog_posts_stream_cursor_value_input { + account_id: String + accounts_liked: jsonb + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + promote_block_height: numeric + promoter_account_id: String + promotion_type: String + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_feed_promoted_blog_posts_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + last_comment_timestamp: numeric + promote_block_height: numeric +} + +"""aggregate var_pop on columns""" +type dataplatform_near_feed_promoted_blog_posts_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float + promote_block_height: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_feed_promoted_blog_posts_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float + promote_block_height: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_feed_promoted_blog_posts_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float + promote_block_height: Float +} + +""" +columns and relationships of "dataplatform_near_feed.sys_logs" +""" +type dataplatform_near_feed_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_feed.sys_logs" +""" +type dataplatform_near_feed_sys_logs_aggregate { + aggregate: dataplatform_near_feed_sys_logs_aggregate_fields + nodes: [dataplatform_near_feed_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_feed.sys_logs" +""" +type dataplatform_near_feed_sys_logs_aggregate_fields { + avg: dataplatform_near_feed_sys_logs_avg_fields + count(columns: [dataplatform_near_feed_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_feed_sys_logs_max_fields + min: dataplatform_near_feed_sys_logs_min_fields + stddev: dataplatform_near_feed_sys_logs_stddev_fields + stddev_pop: dataplatform_near_feed_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_feed_sys_logs_stddev_samp_fields + sum: dataplatform_near_feed_sys_logs_sum_fields + var_pop: dataplatform_near_feed_sys_logs_var_pop_fields + var_samp: dataplatform_near_feed_sys_logs_var_samp_fields + variance: dataplatform_near_feed_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_feed_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_feed.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_feed_sys_logs_bool_exp { + _and: [dataplatform_near_feed_sys_logs_bool_exp!] + _not: dataplatform_near_feed_sys_logs_bool_exp + _or: [dataplatform_near_feed_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_feed_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_feed_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_feed.sys_logs". +""" +input dataplatform_near_feed_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_feed.sys_logs" +""" +enum dataplatform_near_feed_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_feed_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_feed_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_feed_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_feed_sys_logs" +""" +input dataplatform_near_feed_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_feed_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_feed_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_feed_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_feed_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_feed_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_feed_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_feed.sys_metadata" +""" +type dataplatform_near_feed_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_feed.sys_metadata" +""" +type dataplatform_near_feed_sys_metadata_aggregate { + aggregate: dataplatform_near_feed_sys_metadata_aggregate_fields + nodes: [dataplatform_near_feed_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_feed.sys_metadata" +""" +type dataplatform_near_feed_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_feed_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_feed_sys_metadata_max_fields + min: dataplatform_near_feed_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_feed.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_feed_sys_metadata_bool_exp { + _and: [dataplatform_near_feed_sys_metadata_bool_exp!] + _not: dataplatform_near_feed_sys_metadata_bool_exp + _or: [dataplatform_near_feed_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_feed_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_feed_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_feed.sys_metadata". +""" +input dataplatform_near_feed_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_feed.sys_metadata" +""" +enum dataplatform_near_feed_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_feed_sys_metadata" +""" +input dataplatform_near_feed_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_feed_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_feed_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_moderation.moderation_decisions" +""" +type dataplatform_near_moderation_moderation_decisions { + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String! + label: String! + moderated_account_id: String! + moderated_blockheight: Int + moderated_path: String + moderator_account_id: String! + notes: String +} + +""" +aggregated selection of "dataplatform_near_moderation.moderation_decisions" +""" +type dataplatform_near_moderation_moderation_decisions_aggregate { + aggregate: dataplatform_near_moderation_moderation_decisions_aggregate_fields + nodes: [dataplatform_near_moderation_moderation_decisions!]! +} + +""" +aggregate fields of "dataplatform_near_moderation.moderation_decisions" +""" +type dataplatform_near_moderation_moderation_decisions_aggregate_fields { + avg: dataplatform_near_moderation_moderation_decisions_avg_fields + count(columns: [dataplatform_near_moderation_moderation_decisions_select_column!], distinct: Boolean): Int! + max: dataplatform_near_moderation_moderation_decisions_max_fields + min: dataplatform_near_moderation_moderation_decisions_min_fields + stddev: dataplatform_near_moderation_moderation_decisions_stddev_fields + stddev_pop: dataplatform_near_moderation_moderation_decisions_stddev_pop_fields + stddev_samp: dataplatform_near_moderation_moderation_decisions_stddev_samp_fields + sum: dataplatform_near_moderation_moderation_decisions_sum_fields + var_pop: dataplatform_near_moderation_moderation_decisions_var_pop_fields + var_samp: dataplatform_near_moderation_moderation_decisions_var_samp_fields + variance: dataplatform_near_moderation_moderation_decisions_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_moderation_moderation_decisions_avg_fields { + moderated_blockheight: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_moderation.moderation_decisions". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_moderation_moderation_decisions_bool_exp { + _and: [dataplatform_near_moderation_moderation_decisions_bool_exp!] + _not: dataplatform_near_moderation_moderation_decisions_bool_exp + _or: [dataplatform_near_moderation_moderation_decisions_bool_exp!] + base_content_account: String_comparison_exp + base_content_blockheight: String_comparison_exp + base_content_path: String_comparison_exp + expiration: timestamp_comparison_exp + group: String_comparison_exp + label: String_comparison_exp + moderated_account_id: String_comparison_exp + moderated_blockheight: Int_comparison_exp + moderated_path: String_comparison_exp + moderator_account_id: String_comparison_exp + notes: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_moderation_moderation_decisions_max_fields { + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String + label: String + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + moderator_account_id: String + notes: String +} + +"""aggregate min on columns""" +type dataplatform_near_moderation_moderation_decisions_min_fields { + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String + label: String + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + moderator_account_id: String + notes: String +} + +""" +Ordering options when selecting data from "dataplatform_near_moderation.moderation_decisions". +""" +input dataplatform_near_moderation_moderation_decisions_order_by { + base_content_account: order_by + base_content_blockheight: order_by + base_content_path: order_by + expiration: order_by + group: order_by + label: order_by + moderated_account_id: order_by + moderated_blockheight: order_by + moderated_path: order_by + moderator_account_id: order_by + notes: order_by +} + +""" +select columns of table "dataplatform_near_moderation.moderation_decisions" +""" +enum dataplatform_near_moderation_moderation_decisions_select_column { + """column name""" + base_content_account + + """column name""" + base_content_blockheight + + """column name""" + base_content_path + + """column name""" + expiration + + """column name""" + group + + """column name""" + label + + """column name""" + moderated_account_id + + """column name""" + moderated_blockheight + + """column name""" + moderated_path + + """column name""" + moderator_account_id + + """column name""" + notes +} + +"""aggregate stddev on columns""" +type dataplatform_near_moderation_moderation_decisions_stddev_fields { + moderated_blockheight: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_moderation_moderation_decisions_stddev_pop_fields { + moderated_blockheight: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_moderation_moderation_decisions_stddev_samp_fields { + moderated_blockheight: Float +} + +""" +Streaming cursor of the table "dataplatform_near_moderation_moderation_decisions" +""" +input dataplatform_near_moderation_moderation_decisions_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_moderation_moderation_decisions_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_moderation_moderation_decisions_stream_cursor_value_input { + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String + label: String + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + moderator_account_id: String + notes: String +} + +"""aggregate sum on columns""" +type dataplatform_near_moderation_moderation_decisions_sum_fields { + moderated_blockheight: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_moderation_moderation_decisions_var_pop_fields { + moderated_blockheight: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_moderation_moderation_decisions_var_samp_fields { + moderated_blockheight: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_moderation_moderation_decisions_variance_fields { + moderated_blockheight: Float +} + +""" +columns and relationships of "dataplatform_near_moderation.moderation_reporting" +""" +type dataplatform_near_moderation_moderation_reporting { + account_id: String! + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String! + label: String! + moderated_account_id: String! + moderated_blockheight: Int + moderated_path: String + notes: String + report_blockheight: Int +} + +""" +aggregated selection of "dataplatform_near_moderation.moderation_reporting" +""" +type dataplatform_near_moderation_moderation_reporting_aggregate { + aggregate: dataplatform_near_moderation_moderation_reporting_aggregate_fields + nodes: [dataplatform_near_moderation_moderation_reporting!]! +} + +""" +aggregate fields of "dataplatform_near_moderation.moderation_reporting" +""" +type dataplatform_near_moderation_moderation_reporting_aggregate_fields { + avg: dataplatform_near_moderation_moderation_reporting_avg_fields + count(columns: [dataplatform_near_moderation_moderation_reporting_select_column!], distinct: Boolean): Int! + max: dataplatform_near_moderation_moderation_reporting_max_fields + min: dataplatform_near_moderation_moderation_reporting_min_fields + stddev: dataplatform_near_moderation_moderation_reporting_stddev_fields + stddev_pop: dataplatform_near_moderation_moderation_reporting_stddev_pop_fields + stddev_samp: dataplatform_near_moderation_moderation_reporting_stddev_samp_fields + sum: dataplatform_near_moderation_moderation_reporting_sum_fields + var_pop: dataplatform_near_moderation_moderation_reporting_var_pop_fields + var_samp: dataplatform_near_moderation_moderation_reporting_var_samp_fields + variance: dataplatform_near_moderation_moderation_reporting_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_moderation_moderation_reporting_avg_fields { + moderated_blockheight: Float + report_blockheight: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_moderation.moderation_reporting". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_moderation_moderation_reporting_bool_exp { + _and: [dataplatform_near_moderation_moderation_reporting_bool_exp!] + _not: dataplatform_near_moderation_moderation_reporting_bool_exp + _or: [dataplatform_near_moderation_moderation_reporting_bool_exp!] + account_id: String_comparison_exp + base_content_account: String_comparison_exp + base_content_blockheight: String_comparison_exp + base_content_path: String_comparison_exp + expiration: timestamp_comparison_exp + group: String_comparison_exp + label: String_comparison_exp + moderated_account_id: String_comparison_exp + moderated_blockheight: Int_comparison_exp + moderated_path: String_comparison_exp + notes: String_comparison_exp + report_blockheight: Int_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_moderation_moderation_reporting_max_fields { + account_id: String + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String + label: String + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + notes: String + report_blockheight: Int +} + +"""aggregate min on columns""" +type dataplatform_near_moderation_moderation_reporting_min_fields { + account_id: String + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String + label: String + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + notes: String + report_blockheight: Int +} + +""" +Ordering options when selecting data from "dataplatform_near_moderation.moderation_reporting". +""" +input dataplatform_near_moderation_moderation_reporting_order_by { + account_id: order_by + base_content_account: order_by + base_content_blockheight: order_by + base_content_path: order_by + expiration: order_by + group: order_by + label: order_by + moderated_account_id: order_by + moderated_blockheight: order_by + moderated_path: order_by + notes: order_by + report_blockheight: order_by +} + +""" +select columns of table "dataplatform_near_moderation.moderation_reporting" +""" +enum dataplatform_near_moderation_moderation_reporting_select_column { + """column name""" + account_id + + """column name""" + base_content_account + + """column name""" + base_content_blockheight + + """column name""" + base_content_path + + """column name""" + expiration + + """column name""" + group + + """column name""" + label + + """column name""" + moderated_account_id + + """column name""" + moderated_blockheight + + """column name""" + moderated_path + + """column name""" + notes + + """column name""" + report_blockheight +} + +"""aggregate stddev on columns""" +type dataplatform_near_moderation_moderation_reporting_stddev_fields { + moderated_blockheight: Float + report_blockheight: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_moderation_moderation_reporting_stddev_pop_fields { + moderated_blockheight: Float + report_blockheight: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_moderation_moderation_reporting_stddev_samp_fields { + moderated_blockheight: Float + report_blockheight: Float +} + +""" +Streaming cursor of the table "dataplatform_near_moderation_moderation_reporting" +""" +input dataplatform_near_moderation_moderation_reporting_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_moderation_moderation_reporting_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_moderation_moderation_reporting_stream_cursor_value_input { + account_id: String + base_content_account: String + base_content_blockheight: String + base_content_path: String + expiration: timestamp + group: String + label: String + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + notes: String + report_blockheight: Int +} + +"""aggregate sum on columns""" +type dataplatform_near_moderation_moderation_reporting_sum_fields { + moderated_blockheight: Int + report_blockheight: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_moderation_moderation_reporting_var_pop_fields { + moderated_blockheight: Float + report_blockheight: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_moderation_moderation_reporting_var_samp_fields { + moderated_blockheight: Float + report_blockheight: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_moderation_moderation_reporting_variance_fields { + moderated_blockheight: Float + report_blockheight: Float +} + +""" +columns and relationships of "dataplatform_near_moderation.needs_moderation" +""" +type dataplatform_near_moderation_needs_moderation { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + first_report_blockheight: Int + moderated_path: String + most_frequent_label: String + receipt_id: String + reporter_count: bigint + reporter_list: [String!] +} + +""" +aggregated selection of "dataplatform_near_moderation.needs_moderation" +""" +type dataplatform_near_moderation_needs_moderation_aggregate { + aggregate: dataplatform_near_moderation_needs_moderation_aggregate_fields + nodes: [dataplatform_near_moderation_needs_moderation!]! +} + +""" +aggregate fields of "dataplatform_near_moderation.needs_moderation" +""" +type dataplatform_near_moderation_needs_moderation_aggregate_fields { + avg: dataplatform_near_moderation_needs_moderation_avg_fields + count(columns: [dataplatform_near_moderation_needs_moderation_select_column!], distinct: Boolean): Int! + max: dataplatform_near_moderation_needs_moderation_max_fields + min: dataplatform_near_moderation_needs_moderation_min_fields + stddev: dataplatform_near_moderation_needs_moderation_stddev_fields + stddev_pop: dataplatform_near_moderation_needs_moderation_stddev_pop_fields + stddev_samp: dataplatform_near_moderation_needs_moderation_stddev_samp_fields + sum: dataplatform_near_moderation_needs_moderation_sum_fields + var_pop: dataplatform_near_moderation_needs_moderation_var_pop_fields + var_samp: dataplatform_near_moderation_needs_moderation_var_samp_fields + variance: dataplatform_near_moderation_needs_moderation_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_moderation_needs_moderation_avg_fields { + block_height: Float + block_timestamp: Float + first_report_blockheight: Float + reporter_count: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_moderation.needs_moderation". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_moderation_needs_moderation_bool_exp { + _and: [dataplatform_near_moderation_needs_moderation_bool_exp!] + _not: dataplatform_near_moderation_needs_moderation_bool_exp + _or: [dataplatform_near_moderation_needs_moderation_bool_exp!] + account_id: String_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + content: String_comparison_exp + first_report_blockheight: Int_comparison_exp + moderated_path: String_comparison_exp + most_frequent_label: String_comparison_exp + receipt_id: String_comparison_exp + reporter_count: bigint_comparison_exp + reporter_list: String_array_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_moderation_needs_moderation_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + first_report_blockheight: Int + moderated_path: String + most_frequent_label: String + receipt_id: String + reporter_count: bigint + reporter_list: [String!] +} + +"""aggregate min on columns""" +type dataplatform_near_moderation_needs_moderation_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + first_report_blockheight: Int + moderated_path: String + most_frequent_label: String + receipt_id: String + reporter_count: bigint + reporter_list: [String!] +} + +""" +Ordering options when selecting data from "dataplatform_near_moderation.needs_moderation". +""" +input dataplatform_near_moderation_needs_moderation_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + first_report_blockheight: order_by + moderated_path: order_by + most_frequent_label: order_by + receipt_id: order_by + reporter_count: order_by + reporter_list: order_by +} + +""" +select columns of table "dataplatform_near_moderation.needs_moderation" +""" +enum dataplatform_near_moderation_needs_moderation_select_column { + """column name""" + account_id + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + first_report_blockheight + + """column name""" + moderated_path + + """column name""" + most_frequent_label + + """column name""" + receipt_id + + """column name""" + reporter_count + + """column name""" + reporter_list +} + +"""aggregate stddev on columns""" +type dataplatform_near_moderation_needs_moderation_stddev_fields { + block_height: Float + block_timestamp: Float + first_report_blockheight: Float + reporter_count: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_moderation_needs_moderation_stddev_pop_fields { + block_height: Float + block_timestamp: Float + first_report_blockheight: Float + reporter_count: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_moderation_needs_moderation_stddev_samp_fields { + block_height: Float + block_timestamp: Float + first_report_blockheight: Float + reporter_count: Float +} + +""" +Streaming cursor of the table "dataplatform_near_moderation_needs_moderation" +""" +input dataplatform_near_moderation_needs_moderation_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_moderation_needs_moderation_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_moderation_needs_moderation_stream_cursor_value_input { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + first_report_blockheight: Int + moderated_path: String + most_frequent_label: String + receipt_id: String + reporter_count: bigint + reporter_list: [String!] +} + +"""aggregate sum on columns""" +type dataplatform_near_moderation_needs_moderation_sum_fields { + block_height: numeric + block_timestamp: numeric + first_report_blockheight: Int + reporter_count: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_moderation_needs_moderation_var_pop_fields { + block_height: Float + block_timestamp: Float + first_report_blockheight: Float + reporter_count: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_moderation_needs_moderation_var_samp_fields { + block_height: Float + block_timestamp: Float + first_report_blockheight: Float + reporter_count: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_moderation_needs_moderation_variance_fields { + block_height: Float + block_timestamp: Float + first_report_blockheight: Float + reporter_count: Float +} + +""" +columns and relationships of "dataplatform_near_moderation.sys_logs" +""" +type dataplatform_near_moderation_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_moderation.sys_logs" +""" +type dataplatform_near_moderation_sys_logs_aggregate { + aggregate: dataplatform_near_moderation_sys_logs_aggregate_fields + nodes: [dataplatform_near_moderation_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_moderation.sys_logs" +""" +type dataplatform_near_moderation_sys_logs_aggregate_fields { + avg: dataplatform_near_moderation_sys_logs_avg_fields + count(columns: [dataplatform_near_moderation_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_moderation_sys_logs_max_fields + min: dataplatform_near_moderation_sys_logs_min_fields + stddev: dataplatform_near_moderation_sys_logs_stddev_fields + stddev_pop: dataplatform_near_moderation_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_moderation_sys_logs_stddev_samp_fields + sum: dataplatform_near_moderation_sys_logs_sum_fields + var_pop: dataplatform_near_moderation_sys_logs_var_pop_fields + var_samp: dataplatform_near_moderation_sys_logs_var_samp_fields + variance: dataplatform_near_moderation_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_moderation_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_moderation.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_moderation_sys_logs_bool_exp { + _and: [dataplatform_near_moderation_sys_logs_bool_exp!] + _not: dataplatform_near_moderation_sys_logs_bool_exp + _or: [dataplatform_near_moderation_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_moderation_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_moderation_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_moderation.sys_logs". +""" +input dataplatform_near_moderation_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_moderation.sys_logs" +""" +enum dataplatform_near_moderation_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_moderation_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_moderation_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_moderation_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_moderation_sys_logs" +""" +input dataplatform_near_moderation_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_moderation_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_moderation_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_moderation_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_moderation_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_moderation_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_moderation_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_moderation.sys_metadata" +""" +type dataplatform_near_moderation_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_moderation.sys_metadata" +""" +type dataplatform_near_moderation_sys_metadata_aggregate { + aggregate: dataplatform_near_moderation_sys_metadata_aggregate_fields + nodes: [dataplatform_near_moderation_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_moderation.sys_metadata" +""" +type dataplatform_near_moderation_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_moderation_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_moderation_sys_metadata_max_fields + min: dataplatform_near_moderation_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_moderation.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_moderation_sys_metadata_bool_exp { + _and: [dataplatform_near_moderation_sys_metadata_bool_exp!] + _not: dataplatform_near_moderation_sys_metadata_bool_exp + _or: [dataplatform_near_moderation_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_moderation_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_moderation_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_moderation.sys_metadata". +""" +input dataplatform_near_moderation_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_moderation.sys_metadata" +""" +enum dataplatform_near_moderation_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_moderation_sys_metadata" +""" +input dataplatform_near_moderation_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_moderation_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_moderation_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_moderation.unmoderated_reports" +""" +type dataplatform_near_moderation_unmoderated_reports { + first_report_blockheight: Int + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + most_frequent_label: String + reporter_count: bigint + reporter_list: [String!] +} + +""" +aggregated selection of "dataplatform_near_moderation.unmoderated_reports" +""" +type dataplatform_near_moderation_unmoderated_reports_aggregate { + aggregate: dataplatform_near_moderation_unmoderated_reports_aggregate_fields + nodes: [dataplatform_near_moderation_unmoderated_reports!]! +} + +""" +aggregate fields of "dataplatform_near_moderation.unmoderated_reports" +""" +type dataplatform_near_moderation_unmoderated_reports_aggregate_fields { + avg: dataplatform_near_moderation_unmoderated_reports_avg_fields + count(columns: [dataplatform_near_moderation_unmoderated_reports_select_column!], distinct: Boolean): Int! + max: dataplatform_near_moderation_unmoderated_reports_max_fields + min: dataplatform_near_moderation_unmoderated_reports_min_fields + stddev: dataplatform_near_moderation_unmoderated_reports_stddev_fields + stddev_pop: dataplatform_near_moderation_unmoderated_reports_stddev_pop_fields + stddev_samp: dataplatform_near_moderation_unmoderated_reports_stddev_samp_fields + sum: dataplatform_near_moderation_unmoderated_reports_sum_fields + var_pop: dataplatform_near_moderation_unmoderated_reports_var_pop_fields + var_samp: dataplatform_near_moderation_unmoderated_reports_var_samp_fields + variance: dataplatform_near_moderation_unmoderated_reports_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_moderation_unmoderated_reports_avg_fields { + first_report_blockheight: Float + moderated_blockheight: Float + reporter_count: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_moderation.unmoderated_reports". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_moderation_unmoderated_reports_bool_exp { + _and: [dataplatform_near_moderation_unmoderated_reports_bool_exp!] + _not: dataplatform_near_moderation_unmoderated_reports_bool_exp + _or: [dataplatform_near_moderation_unmoderated_reports_bool_exp!] + first_report_blockheight: Int_comparison_exp + moderated_account_id: String_comparison_exp + moderated_blockheight: Int_comparison_exp + moderated_path: String_comparison_exp + most_frequent_label: String_comparison_exp + reporter_count: bigint_comparison_exp + reporter_list: String_array_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_moderation_unmoderated_reports_max_fields { + first_report_blockheight: Int + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + most_frequent_label: String + reporter_count: bigint + reporter_list: [String!] +} + +"""aggregate min on columns""" +type dataplatform_near_moderation_unmoderated_reports_min_fields { + first_report_blockheight: Int + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + most_frequent_label: String + reporter_count: bigint + reporter_list: [String!] +} + +""" +Ordering options when selecting data from "dataplatform_near_moderation.unmoderated_reports". +""" +input dataplatform_near_moderation_unmoderated_reports_order_by { + first_report_blockheight: order_by + moderated_account_id: order_by + moderated_blockheight: order_by + moderated_path: order_by + most_frequent_label: order_by + reporter_count: order_by + reporter_list: order_by +} + +""" +select columns of table "dataplatform_near_moderation.unmoderated_reports" +""" +enum dataplatform_near_moderation_unmoderated_reports_select_column { + """column name""" + first_report_blockheight + + """column name""" + moderated_account_id + + """column name""" + moderated_blockheight + + """column name""" + moderated_path + + """column name""" + most_frequent_label + + """column name""" + reporter_count + + """column name""" + reporter_list +} + +"""aggregate stddev on columns""" +type dataplatform_near_moderation_unmoderated_reports_stddev_fields { + first_report_blockheight: Float + moderated_blockheight: Float + reporter_count: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_moderation_unmoderated_reports_stddev_pop_fields { + first_report_blockheight: Float + moderated_blockheight: Float + reporter_count: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_moderation_unmoderated_reports_stddev_samp_fields { + first_report_blockheight: Float + moderated_blockheight: Float + reporter_count: Float +} + +""" +Streaming cursor of the table "dataplatform_near_moderation_unmoderated_reports" +""" +input dataplatform_near_moderation_unmoderated_reports_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_moderation_unmoderated_reports_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_moderation_unmoderated_reports_stream_cursor_value_input { + first_report_blockheight: Int + moderated_account_id: String + moderated_blockheight: Int + moderated_path: String + most_frequent_label: String + reporter_count: bigint + reporter_list: [String!] +} + +"""aggregate sum on columns""" +type dataplatform_near_moderation_unmoderated_reports_sum_fields { + first_report_blockheight: Int + moderated_blockheight: Int + reporter_count: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_moderation_unmoderated_reports_var_pop_fields { + first_report_blockheight: Float + moderated_blockheight: Float + reporter_count: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_moderation_unmoderated_reports_var_samp_fields { + first_report_blockheight: Float + moderated_blockheight: Float + reporter_count: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_moderation_unmoderated_reports_variance_fields { + first_report_blockheight: Float + moderated_blockheight: Float + reporter_count: Float +} + +""" +columns and relationships of "dataplatform_near_notifications.notifications" +""" +type dataplatform_near_notifications_notifications { + """An object relationship""" + account: dataplatform_near_accounts_accounts + actionAtBlockHeight: Int + blockHeight: numeric! + devhubPostId: Int + id: Int! + initiatedBy: String! + itemType: String + message: String + path: String + receiptId: String + receiver: String! + valueType: String! +} + +""" +aggregated selection of "dataplatform_near_notifications.notifications" +""" +type dataplatform_near_notifications_notifications_aggregate { + aggregate: dataplatform_near_notifications_notifications_aggregate_fields + nodes: [dataplatform_near_notifications_notifications!]! +} + +""" +aggregate fields of "dataplatform_near_notifications.notifications" +""" +type dataplatform_near_notifications_notifications_aggregate_fields { + avg: dataplatform_near_notifications_notifications_avg_fields + count(columns: [dataplatform_near_notifications_notifications_select_column!], distinct: Boolean): Int! + max: dataplatform_near_notifications_notifications_max_fields + min: dataplatform_near_notifications_notifications_min_fields + stddev: dataplatform_near_notifications_notifications_stddev_fields + stddev_pop: dataplatform_near_notifications_notifications_stddev_pop_fields + stddev_samp: dataplatform_near_notifications_notifications_stddev_samp_fields + sum: dataplatform_near_notifications_notifications_sum_fields + var_pop: dataplatform_near_notifications_notifications_var_pop_fields + var_samp: dataplatform_near_notifications_notifications_var_samp_fields + variance: dataplatform_near_notifications_notifications_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_notifications_notifications_avg_fields { + actionAtBlockHeight: Float + blockHeight: Float + devhubPostId: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_notifications.notifications". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_notifications_notifications_bool_exp { + _and: [dataplatform_near_notifications_notifications_bool_exp!] + _not: dataplatform_near_notifications_notifications_bool_exp + _or: [dataplatform_near_notifications_notifications_bool_exp!] + account: dataplatform_near_accounts_accounts_bool_exp + actionAtBlockHeight: Int_comparison_exp + blockHeight: numeric_comparison_exp + devhubPostId: Int_comparison_exp + id: Int_comparison_exp + initiatedBy: String_comparison_exp + itemType: String_comparison_exp + message: String_comparison_exp + path: String_comparison_exp + receiptId: String_comparison_exp + receiver: String_comparison_exp + valueType: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_notifications_notifications_max_fields { + actionAtBlockHeight: Int + blockHeight: numeric + devhubPostId: Int + id: Int + initiatedBy: String + itemType: String + message: String + path: String + receiptId: String + receiver: String + valueType: String +} + +"""aggregate min on columns""" +type dataplatform_near_notifications_notifications_min_fields { + actionAtBlockHeight: Int + blockHeight: numeric + devhubPostId: Int + id: Int + initiatedBy: String + itemType: String + message: String + path: String + receiptId: String + receiver: String + valueType: String +} + +""" +Ordering options when selecting data from "dataplatform_near_notifications.notifications". +""" +input dataplatform_near_notifications_notifications_order_by { + account: dataplatform_near_accounts_accounts_order_by + actionAtBlockHeight: order_by + blockHeight: order_by + devhubPostId: order_by + id: order_by + initiatedBy: order_by + itemType: order_by + message: order_by + path: order_by + receiptId: order_by + receiver: order_by + valueType: order_by +} + +""" +select columns of table "dataplatform_near_notifications.notifications" +""" +enum dataplatform_near_notifications_notifications_select_column { + """column name""" + actionAtBlockHeight + + """column name""" + blockHeight + + """column name""" + devhubPostId + + """column name""" + id + + """column name""" + initiatedBy + + """column name""" + itemType + + """column name""" + message + + """column name""" + path + + """column name""" + receiptId + + """column name""" + receiver + + """column name""" + valueType +} + +"""aggregate stddev on columns""" +type dataplatform_near_notifications_notifications_stddev_fields { + actionAtBlockHeight: Float + blockHeight: Float + devhubPostId: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_notifications_notifications_stddev_pop_fields { + actionAtBlockHeight: Float + blockHeight: Float + devhubPostId: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_notifications_notifications_stddev_samp_fields { + actionAtBlockHeight: Float + blockHeight: Float + devhubPostId: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_notifications_notifications" +""" +input dataplatform_near_notifications_notifications_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_notifications_notifications_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_notifications_notifications_stream_cursor_value_input { + actionAtBlockHeight: Int + blockHeight: numeric + devhubPostId: Int + id: Int + initiatedBy: String + itemType: String + message: String + path: String + receiptId: String + receiver: String + valueType: String +} + +"""aggregate sum on columns""" +type dataplatform_near_notifications_notifications_sum_fields { + actionAtBlockHeight: Int + blockHeight: numeric + devhubPostId: Int + id: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_notifications_notifications_var_pop_fields { + actionAtBlockHeight: Float + blockHeight: Float + devhubPostId: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_notifications_notifications_var_samp_fields { + actionAtBlockHeight: Float + blockHeight: Float + devhubPostId: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_notifications_notifications_variance_fields { + actionAtBlockHeight: Float + blockHeight: Float + devhubPostId: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_notifications.sys_logs" +""" +type dataplatform_near_notifications_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_notifications.sys_logs" +""" +type dataplatform_near_notifications_sys_logs_aggregate { + aggregate: dataplatform_near_notifications_sys_logs_aggregate_fields + nodes: [dataplatform_near_notifications_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_notifications.sys_logs" +""" +type dataplatform_near_notifications_sys_logs_aggregate_fields { + avg: dataplatform_near_notifications_sys_logs_avg_fields + count(columns: [dataplatform_near_notifications_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_notifications_sys_logs_max_fields + min: dataplatform_near_notifications_sys_logs_min_fields + stddev: dataplatform_near_notifications_sys_logs_stddev_fields + stddev_pop: dataplatform_near_notifications_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_notifications_sys_logs_stddev_samp_fields + sum: dataplatform_near_notifications_sys_logs_sum_fields + var_pop: dataplatform_near_notifications_sys_logs_var_pop_fields + var_samp: dataplatform_near_notifications_sys_logs_var_samp_fields + variance: dataplatform_near_notifications_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_notifications_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_notifications.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_notifications_sys_logs_bool_exp { + _and: [dataplatform_near_notifications_sys_logs_bool_exp!] + _not: dataplatform_near_notifications_sys_logs_bool_exp + _or: [dataplatform_near_notifications_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_notifications_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_notifications_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_notifications.sys_logs". +""" +input dataplatform_near_notifications_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_notifications.sys_logs" +""" +enum dataplatform_near_notifications_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_notifications_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_notifications_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_notifications_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_notifications_sys_logs" +""" +input dataplatform_near_notifications_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_notifications_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_notifications_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_notifications_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_notifications_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_notifications_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_notifications_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_notifications.sys_metadata" +""" +type dataplatform_near_notifications_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_notifications.sys_metadata" +""" +type dataplatform_near_notifications_sys_metadata_aggregate { + aggregate: dataplatform_near_notifications_sys_metadata_aggregate_fields + nodes: [dataplatform_near_notifications_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_notifications.sys_metadata" +""" +type dataplatform_near_notifications_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_notifications_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_notifications_sys_metadata_max_fields + min: dataplatform_near_notifications_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_notifications.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_notifications_sys_metadata_bool_exp { + _and: [dataplatform_near_notifications_sys_metadata_bool_exp!] + _not: dataplatform_near_notifications_sys_metadata_bool_exp + _or: [dataplatform_near_notifications_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_notifications_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_notifications_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_notifications.sys_metadata". +""" +input dataplatform_near_notifications_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_notifications.sys_metadata" +""" +enum dataplatform_near_notifications_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_notifications_sys_metadata" +""" +input dataplatform_near_notifications_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_notifications_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_notifications_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_receiver_blocks.bitmaps" +""" +type dataplatform_near_receiver_blocks_bitmaps { + bitmap: String! + block_date: date! + first_block_height: Int! + last_elias_gamma_start_bit: Int! + max_index: Int! + + """An object relationship""" + receiver: dataplatform_near_receiver_blocks_receivers! + receiver_id: bigint! +} + +""" +aggregated selection of "dataplatform_near_receiver_blocks.bitmaps" +""" +type dataplatform_near_receiver_blocks_bitmaps_aggregate { + aggregate: dataplatform_near_receiver_blocks_bitmaps_aggregate_fields + nodes: [dataplatform_near_receiver_blocks_bitmaps!]! +} + +input dataplatform_near_receiver_blocks_bitmaps_aggregate_bool_exp { + count: dataplatform_near_receiver_blocks_bitmaps_aggregate_bool_exp_count +} + +input dataplatform_near_receiver_blocks_bitmaps_aggregate_bool_exp_count { + arguments: [dataplatform_near_receiver_blocks_bitmaps_select_column!] + distinct: Boolean + filter: dataplatform_near_receiver_blocks_bitmaps_bool_exp + predicate: Int_comparison_exp! +} + +""" +aggregate fields of "dataplatform_near_receiver_blocks.bitmaps" +""" +type dataplatform_near_receiver_blocks_bitmaps_aggregate_fields { + avg: dataplatform_near_receiver_blocks_bitmaps_avg_fields + count(columns: [dataplatform_near_receiver_blocks_bitmaps_select_column!], distinct: Boolean): Int! + max: dataplatform_near_receiver_blocks_bitmaps_max_fields + min: dataplatform_near_receiver_blocks_bitmaps_min_fields + stddev: dataplatform_near_receiver_blocks_bitmaps_stddev_fields + stddev_pop: dataplatform_near_receiver_blocks_bitmaps_stddev_pop_fields + stddev_samp: dataplatform_near_receiver_blocks_bitmaps_stddev_samp_fields + sum: dataplatform_near_receiver_blocks_bitmaps_sum_fields + var_pop: dataplatform_near_receiver_blocks_bitmaps_var_pop_fields + var_samp: dataplatform_near_receiver_blocks_bitmaps_var_samp_fields + variance: dataplatform_near_receiver_blocks_bitmaps_variance_fields +} + +""" +order by aggregate values of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_aggregate_order_by { + avg: dataplatform_near_receiver_blocks_bitmaps_avg_order_by + count: order_by + max: dataplatform_near_receiver_blocks_bitmaps_max_order_by + min: dataplatform_near_receiver_blocks_bitmaps_min_order_by + stddev: dataplatform_near_receiver_blocks_bitmaps_stddev_order_by + stddev_pop: dataplatform_near_receiver_blocks_bitmaps_stddev_pop_order_by + stddev_samp: dataplatform_near_receiver_blocks_bitmaps_stddev_samp_order_by + sum: dataplatform_near_receiver_blocks_bitmaps_sum_order_by + var_pop: dataplatform_near_receiver_blocks_bitmaps_var_pop_order_by + var_samp: dataplatform_near_receiver_blocks_bitmaps_var_samp_order_by + variance: dataplatform_near_receiver_blocks_bitmaps_variance_order_by +} + +"""aggregate avg on columns""" +type dataplatform_near_receiver_blocks_bitmaps_avg_fields { + first_block_height: Float + last_elias_gamma_start_bit: Float + max_index: Float + receiver_id: Float +} + +""" +order by avg() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_avg_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_receiver_blocks.bitmaps". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_receiver_blocks_bitmaps_bool_exp { + _and: [dataplatform_near_receiver_blocks_bitmaps_bool_exp!] + _not: dataplatform_near_receiver_blocks_bitmaps_bool_exp + _or: [dataplatform_near_receiver_blocks_bitmaps_bool_exp!] + bitmap: String_comparison_exp + block_date: date_comparison_exp + first_block_height: Int_comparison_exp + last_elias_gamma_start_bit: Int_comparison_exp + max_index: Int_comparison_exp + receiver: dataplatform_near_receiver_blocks_receivers_bool_exp + receiver_id: bigint_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_receiver_blocks_bitmaps_max_fields { + bitmap: String + block_date: date + first_block_height: Int + last_elias_gamma_start_bit: Int + max_index: Int + receiver_id: bigint +} + +""" +order by max() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_max_order_by { + bitmap: order_by + block_date: order_by + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +"""aggregate min on columns""" +type dataplatform_near_receiver_blocks_bitmaps_min_fields { + bitmap: String + block_date: date + first_block_height: Int + last_elias_gamma_start_bit: Int + max_index: Int + receiver_id: bigint +} + +""" +order by min() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_min_order_by { + bitmap: order_by + block_date: order_by + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +""" +Ordering options when selecting data from "dataplatform_near_receiver_blocks.bitmaps". +""" +input dataplatform_near_receiver_blocks_bitmaps_order_by { + bitmap: order_by + block_date: order_by + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver: dataplatform_near_receiver_blocks_receivers_order_by + receiver_id: order_by +} + +""" +select columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +enum dataplatform_near_receiver_blocks_bitmaps_select_column { + """column name""" + bitmap + + """column name""" + block_date + + """column name""" + first_block_height + + """column name""" + last_elias_gamma_start_bit + + """column name""" + max_index + + """column name""" + receiver_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_receiver_blocks_bitmaps_stddev_fields { + first_block_height: Float + last_elias_gamma_start_bit: Float + max_index: Float + receiver_id: Float +} + +""" +order by stddev() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_stddev_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_receiver_blocks_bitmaps_stddev_pop_fields { + first_block_height: Float + last_elias_gamma_start_bit: Float + max_index: Float + receiver_id: Float +} + +""" +order by stddev_pop() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_stddev_pop_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_receiver_blocks_bitmaps_stddev_samp_fields { + first_block_height: Float + last_elias_gamma_start_bit: Float + max_index: Float + receiver_id: Float +} + +""" +order by stddev_samp() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_stddev_samp_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +""" +Streaming cursor of the table "dataplatform_near_receiver_blocks_bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_receiver_blocks_bitmaps_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_receiver_blocks_bitmaps_stream_cursor_value_input { + bitmap: String + block_date: date + first_block_height: Int + last_elias_gamma_start_bit: Int + max_index: Int + receiver_id: bigint +} + +"""aggregate sum on columns""" +type dataplatform_near_receiver_blocks_bitmaps_sum_fields { + first_block_height: Int + last_elias_gamma_start_bit: Int + max_index: Int + receiver_id: bigint +} + +""" +order by sum() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_sum_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +"""aggregate var_pop on columns""" +type dataplatform_near_receiver_blocks_bitmaps_var_pop_fields { + first_block_height: Float + last_elias_gamma_start_bit: Float + max_index: Float + receiver_id: Float +} + +""" +order by var_pop() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_var_pop_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +"""aggregate var_samp on columns""" +type dataplatform_near_receiver_blocks_bitmaps_var_samp_fields { + first_block_height: Float + last_elias_gamma_start_bit: Float + max_index: Float + receiver_id: Float +} + +""" +order by var_samp() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_var_samp_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +"""aggregate variance on columns""" +type dataplatform_near_receiver_blocks_bitmaps_variance_fields { + first_block_height: Float + last_elias_gamma_start_bit: Float + max_index: Float + receiver_id: Float +} + +""" +order by variance() on columns of table "dataplatform_near_receiver_blocks.bitmaps" +""" +input dataplatform_near_receiver_blocks_bitmaps_variance_order_by { + first_block_height: order_by + last_elias_gamma_start_bit: order_by + max_index: order_by + receiver_id: order_by +} + +""" +columns and relationships of "dataplatform_near_receiver_blocks.receivers" +""" +type dataplatform_near_receiver_blocks_receivers { + """An array relationship""" + bitmaps( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_bitmaps_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_bitmaps_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_bitmaps_bool_exp + ): [dataplatform_near_receiver_blocks_bitmaps!]! + + """An aggregate relationship""" + bitmaps_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_bitmaps_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_bitmaps_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_bitmaps_bool_exp + ): dataplatform_near_receiver_blocks_bitmaps_aggregate! + id: bigint! + receiver: String! +} + +""" +aggregated selection of "dataplatform_near_receiver_blocks.receivers" +""" +type dataplatform_near_receiver_blocks_receivers_aggregate { + aggregate: dataplatform_near_receiver_blocks_receivers_aggregate_fields + nodes: [dataplatform_near_receiver_blocks_receivers!]! +} + +""" +aggregate fields of "dataplatform_near_receiver_blocks.receivers" +""" +type dataplatform_near_receiver_blocks_receivers_aggregate_fields { + avg: dataplatform_near_receiver_blocks_receivers_avg_fields + count(columns: [dataplatform_near_receiver_blocks_receivers_select_column!], distinct: Boolean): Int! + max: dataplatform_near_receiver_blocks_receivers_max_fields + min: dataplatform_near_receiver_blocks_receivers_min_fields + stddev: dataplatform_near_receiver_blocks_receivers_stddev_fields + stddev_pop: dataplatform_near_receiver_blocks_receivers_stddev_pop_fields + stddev_samp: dataplatform_near_receiver_blocks_receivers_stddev_samp_fields + sum: dataplatform_near_receiver_blocks_receivers_sum_fields + var_pop: dataplatform_near_receiver_blocks_receivers_var_pop_fields + var_samp: dataplatform_near_receiver_blocks_receivers_var_samp_fields + variance: dataplatform_near_receiver_blocks_receivers_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_receiver_blocks_receivers_avg_fields { + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_receiver_blocks.receivers". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_receiver_blocks_receivers_bool_exp { + _and: [dataplatform_near_receiver_blocks_receivers_bool_exp!] + _not: dataplatform_near_receiver_blocks_receivers_bool_exp + _or: [dataplatform_near_receiver_blocks_receivers_bool_exp!] + bitmaps: dataplatform_near_receiver_blocks_bitmaps_bool_exp + bitmaps_aggregate: dataplatform_near_receiver_blocks_bitmaps_aggregate_bool_exp + id: bigint_comparison_exp + receiver: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_receiver_blocks_receivers_max_fields { + id: bigint + receiver: String +} + +"""aggregate min on columns""" +type dataplatform_near_receiver_blocks_receivers_min_fields { + id: bigint + receiver: String +} + +""" +Ordering options when selecting data from "dataplatform_near_receiver_blocks.receivers". +""" +input dataplatform_near_receiver_blocks_receivers_order_by { + bitmaps_aggregate: dataplatform_near_receiver_blocks_bitmaps_aggregate_order_by + id: order_by + receiver: order_by +} + +""" +select columns of table "dataplatform_near_receiver_blocks.receivers" +""" +enum dataplatform_near_receiver_blocks_receivers_select_column { + """column name""" + id + + """column name""" + receiver +} + +"""aggregate stddev on columns""" +type dataplatform_near_receiver_blocks_receivers_stddev_fields { + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_receiver_blocks_receivers_stddev_pop_fields { + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_receiver_blocks_receivers_stddev_samp_fields { + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_receiver_blocks_receivers" +""" +input dataplatform_near_receiver_blocks_receivers_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_receiver_blocks_receivers_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_receiver_blocks_receivers_stream_cursor_value_input { + id: bigint + receiver: String +} + +"""aggregate sum on columns""" +type dataplatform_near_receiver_blocks_receivers_sum_fields { + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_receiver_blocks_receivers_var_pop_fields { + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_receiver_blocks_receivers_var_samp_fields { + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_receiver_blocks_receivers_variance_fields { + id: Float +} + +""" +columns and relationships of "dataplatform_near_receiver_blocks.sys_logs" +""" +type dataplatform_near_receiver_blocks_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_receiver_blocks.sys_logs" +""" +type dataplatform_near_receiver_blocks_sys_logs_aggregate { + aggregate: dataplatform_near_receiver_blocks_sys_logs_aggregate_fields + nodes: [dataplatform_near_receiver_blocks_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_receiver_blocks.sys_logs" +""" +type dataplatform_near_receiver_blocks_sys_logs_aggregate_fields { + avg: dataplatform_near_receiver_blocks_sys_logs_avg_fields + count(columns: [dataplatform_near_receiver_blocks_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_receiver_blocks_sys_logs_max_fields + min: dataplatform_near_receiver_blocks_sys_logs_min_fields + stddev: dataplatform_near_receiver_blocks_sys_logs_stddev_fields + stddev_pop: dataplatform_near_receiver_blocks_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_receiver_blocks_sys_logs_stddev_samp_fields + sum: dataplatform_near_receiver_blocks_sys_logs_sum_fields + var_pop: dataplatform_near_receiver_blocks_sys_logs_var_pop_fields + var_samp: dataplatform_near_receiver_blocks_sys_logs_var_samp_fields + variance: dataplatform_near_receiver_blocks_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_receiver_blocks_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_receiver_blocks.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_receiver_blocks_sys_logs_bool_exp { + _and: [dataplatform_near_receiver_blocks_sys_logs_bool_exp!] + _not: dataplatform_near_receiver_blocks_sys_logs_bool_exp + _or: [dataplatform_near_receiver_blocks_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_receiver_blocks_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_receiver_blocks_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_receiver_blocks.sys_logs". +""" +input dataplatform_near_receiver_blocks_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_receiver_blocks.sys_logs" +""" +enum dataplatform_near_receiver_blocks_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_receiver_blocks_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_receiver_blocks_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_receiver_blocks_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_receiver_blocks_sys_logs" +""" +input dataplatform_near_receiver_blocks_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_receiver_blocks_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_receiver_blocks_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_receiver_blocks_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_receiver_blocks_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_receiver_blocks_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_receiver_blocks_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_receiver_blocks.sys_metadata" +""" +type dataplatform_near_receiver_blocks_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_receiver_blocks.sys_metadata" +""" +type dataplatform_near_receiver_blocks_sys_metadata_aggregate { + aggregate: dataplatform_near_receiver_blocks_sys_metadata_aggregate_fields + nodes: [dataplatform_near_receiver_blocks_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_receiver_blocks.sys_metadata" +""" +type dataplatform_near_receiver_blocks_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_receiver_blocks_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_receiver_blocks_sys_metadata_max_fields + min: dataplatform_near_receiver_blocks_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_receiver_blocks.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_receiver_blocks_sys_metadata_bool_exp { + _and: [dataplatform_near_receiver_blocks_sys_metadata_bool_exp!] + _not: dataplatform_near_receiver_blocks_sys_metadata_bool_exp + _or: [dataplatform_near_receiver_blocks_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_receiver_blocks_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_receiver_blocks_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_receiver_blocks.sys_metadata". +""" +input dataplatform_near_receiver_blocks_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_receiver_blocks.sys_metadata" +""" +enum dataplatform_near_receiver_blocks_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_receiver_blocks_sys_metadata" +""" +input dataplatform_near_receiver_blocks_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_receiver_blocks_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_receiver_blocks_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_social_feed.comments" +""" +type dataplatform_near_social_feed_comments { + account_id: String! + block_height: numeric! + block_timestamp: numeric! + content: String! + id: Int! + + """An object relationship""" + post: dataplatform_near_social_feed_posts! + post_id: Int! + receipt_id: String! +} + +""" +aggregated selection of "dataplatform_near_social_feed.comments" +""" +type dataplatform_near_social_feed_comments_aggregate { + aggregate: dataplatform_near_social_feed_comments_aggregate_fields + nodes: [dataplatform_near_social_feed_comments!]! +} + +input dataplatform_near_social_feed_comments_aggregate_bool_exp { + count: dataplatform_near_social_feed_comments_aggregate_bool_exp_count +} + +input dataplatform_near_social_feed_comments_aggregate_bool_exp_count { + arguments: [dataplatform_near_social_feed_comments_select_column!] + distinct: Boolean + filter: dataplatform_near_social_feed_comments_bool_exp + predicate: Int_comparison_exp! +} + +""" +aggregate fields of "dataplatform_near_social_feed.comments" +""" +type dataplatform_near_social_feed_comments_aggregate_fields { + avg: dataplatform_near_social_feed_comments_avg_fields + count(columns: [dataplatform_near_social_feed_comments_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_comments_max_fields + min: dataplatform_near_social_feed_comments_min_fields + stddev: dataplatform_near_social_feed_comments_stddev_fields + stddev_pop: dataplatform_near_social_feed_comments_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_comments_stddev_samp_fields + sum: dataplatform_near_social_feed_comments_sum_fields + var_pop: dataplatform_near_social_feed_comments_var_pop_fields + var_samp: dataplatform_near_social_feed_comments_var_samp_fields + variance: dataplatform_near_social_feed_comments_variance_fields +} + +""" +order by aggregate values of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_aggregate_order_by { + avg: dataplatform_near_social_feed_comments_avg_order_by + count: order_by + max: dataplatform_near_social_feed_comments_max_order_by + min: dataplatform_near_social_feed_comments_min_order_by + stddev: dataplatform_near_social_feed_comments_stddev_order_by + stddev_pop: dataplatform_near_social_feed_comments_stddev_pop_order_by + stddev_samp: dataplatform_near_social_feed_comments_stddev_samp_order_by + sum: dataplatform_near_social_feed_comments_sum_order_by + var_pop: dataplatform_near_social_feed_comments_var_pop_order_by + var_samp: dataplatform_near_social_feed_comments_var_samp_order_by + variance: dataplatform_near_social_feed_comments_variance_order_by +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_comments_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by avg() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_avg_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.comments". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_comments_bool_exp { + _and: [dataplatform_near_social_feed_comments_bool_exp!] + _not: dataplatform_near_social_feed_comments_bool_exp + _or: [dataplatform_near_social_feed_comments_bool_exp!] + account_id: String_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + content: String_comparison_exp + id: Int_comparison_exp + post: dataplatform_near_social_feed_posts_bool_exp + post_id: Int_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_comments_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +""" +order by max() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_max_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post_id: order_by + receipt_id: order_by +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_comments_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +""" +order by min() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_min_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post_id: order_by + receipt_id: order_by +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.comments". +""" +input dataplatform_near_social_feed_comments_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post: dataplatform_near_social_feed_posts_order_by + post_id: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_social_feed.comments" +""" +enum dataplatform_near_social_feed_comments_select_column { + """column name""" + account_id + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + post_id + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_comments_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_stddev_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_comments_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev_pop() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_stddev_pop_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_comments_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev_samp() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_stddev_samp_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_comments" +""" +input dataplatform_near_social_feed_comments_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_comments_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_comments_stream_cursor_value_input { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_comments_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int +} + +""" +order by sum() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_sum_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_comments_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by var_pop() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_var_pop_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_comments_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by var_samp() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_var_samp_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_comments_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by variance() on columns of table "dataplatform_near_social_feed.comments" +""" +input dataplatform_near_social_feed_comments_variance_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +columns and relationships of "dataplatform_near_social_feed.moderated_comments" +""" +type dataplatform_near_social_feed_moderated_comments { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + + """An object relationship""" + post: dataplatform_near_social_feed_moderated_posts + post_id: Int + receipt_id: String +} + +""" +aggregated selection of "dataplatform_near_social_feed.moderated_comments" +""" +type dataplatform_near_social_feed_moderated_comments_aggregate { + aggregate: dataplatform_near_social_feed_moderated_comments_aggregate_fields + nodes: [dataplatform_near_social_feed_moderated_comments!]! +} + +input dataplatform_near_social_feed_moderated_comments_aggregate_bool_exp { + count: dataplatform_near_social_feed_moderated_comments_aggregate_bool_exp_count +} + +input dataplatform_near_social_feed_moderated_comments_aggregate_bool_exp_count { + arguments: [dataplatform_near_social_feed_moderated_comments_select_column!] + distinct: Boolean + filter: dataplatform_near_social_feed_moderated_comments_bool_exp + predicate: Int_comparison_exp! +} + +""" +aggregate fields of "dataplatform_near_social_feed.moderated_comments" +""" +type dataplatform_near_social_feed_moderated_comments_aggregate_fields { + avg: dataplatform_near_social_feed_moderated_comments_avg_fields + count(columns: [dataplatform_near_social_feed_moderated_comments_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_moderated_comments_max_fields + min: dataplatform_near_social_feed_moderated_comments_min_fields + stddev: dataplatform_near_social_feed_moderated_comments_stddev_fields + stddev_pop: dataplatform_near_social_feed_moderated_comments_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_moderated_comments_stddev_samp_fields + sum: dataplatform_near_social_feed_moderated_comments_sum_fields + var_pop: dataplatform_near_social_feed_moderated_comments_var_pop_fields + var_samp: dataplatform_near_social_feed_moderated_comments_var_samp_fields + variance: dataplatform_near_social_feed_moderated_comments_variance_fields +} + +""" +order by aggregate values of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_aggregate_order_by { + avg: dataplatform_near_social_feed_moderated_comments_avg_order_by + count: order_by + max: dataplatform_near_social_feed_moderated_comments_max_order_by + min: dataplatform_near_social_feed_moderated_comments_min_order_by + stddev: dataplatform_near_social_feed_moderated_comments_stddev_order_by + stddev_pop: dataplatform_near_social_feed_moderated_comments_stddev_pop_order_by + stddev_samp: dataplatform_near_social_feed_moderated_comments_stddev_samp_order_by + sum: dataplatform_near_social_feed_moderated_comments_sum_order_by + var_pop: dataplatform_near_social_feed_moderated_comments_var_pop_order_by + var_samp: dataplatform_near_social_feed_moderated_comments_var_samp_order_by + variance: dataplatform_near_social_feed_moderated_comments_variance_order_by +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_moderated_comments_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by avg() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_avg_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.moderated_comments". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_moderated_comments_bool_exp { + _and: [dataplatform_near_social_feed_moderated_comments_bool_exp!] + _not: dataplatform_near_social_feed_moderated_comments_bool_exp + _or: [dataplatform_near_social_feed_moderated_comments_bool_exp!] + account_id: String_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + content: String_comparison_exp + id: Int_comparison_exp + post: dataplatform_near_social_feed_moderated_posts_bool_exp + post_id: Int_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_moderated_comments_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +""" +order by max() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_max_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post_id: order_by + receipt_id: order_by +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_moderated_comments_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +""" +order by min() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_min_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post_id: order_by + receipt_id: order_by +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.moderated_comments". +""" +input dataplatform_near_social_feed_moderated_comments_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post: dataplatform_near_social_feed_moderated_posts_order_by + post_id: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_social_feed.moderated_comments" +""" +enum dataplatform_near_social_feed_moderated_comments_select_column { + """column name""" + account_id + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + post_id + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_moderated_comments_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_stddev_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_moderated_comments_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev_pop() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_stddev_pop_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_moderated_comments_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by stddev_samp() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_stddev_samp_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_moderated_comments_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_moderated_comments_stream_cursor_value_input { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_moderated_comments_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int +} + +""" +order by sum() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_sum_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_moderated_comments_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by var_pop() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_var_pop_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_moderated_comments_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by var_samp() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_var_samp_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_moderated_comments_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +order by variance() on columns of table "dataplatform_near_social_feed.moderated_comments" +""" +input dataplatform_near_social_feed_moderated_comments_variance_order_by { + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by +} + +""" +columns and relationships of "dataplatform_near_social_feed.moderated_posts" +""" +type dataplatform_near_social_feed_moderated_posts { + account_id: String + accounts_liked( + """JSON select path""" + path: String + ): jsonb + block_height: numeric + block_timestamp: numeric + + """An array relationship""" + comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_comments_bool_exp + ): [dataplatform_near_social_feed_moderated_comments!]! + + """An aggregate relationship""" + comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_comments_bool_exp + ): dataplatform_near_social_feed_moderated_comments_aggregate! + content: String + id: Int + last_comment_timestamp: numeric + + """An array relationship""" + post_likes( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): [dataplatform_near_social_feed_post_likes!]! + + """An aggregate relationship""" + post_likes_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): dataplatform_near_social_feed_post_likes_aggregate! + receipt_id: String + + """An object relationship""" + verifications: dataplatform_near_verifications_account +} + +""" +aggregated selection of "dataplatform_near_social_feed.moderated_posts" +""" +type dataplatform_near_social_feed_moderated_posts_aggregate { + aggregate: dataplatform_near_social_feed_moderated_posts_aggregate_fields + nodes: [dataplatform_near_social_feed_moderated_posts!]! +} + +""" +aggregate fields of "dataplatform_near_social_feed.moderated_posts" +""" +type dataplatform_near_social_feed_moderated_posts_aggregate_fields { + avg: dataplatform_near_social_feed_moderated_posts_avg_fields + count(columns: [dataplatform_near_social_feed_moderated_posts_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_moderated_posts_max_fields + min: dataplatform_near_social_feed_moderated_posts_min_fields + stddev: dataplatform_near_social_feed_moderated_posts_stddev_fields + stddev_pop: dataplatform_near_social_feed_moderated_posts_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_moderated_posts_stddev_samp_fields + sum: dataplatform_near_social_feed_moderated_posts_sum_fields + var_pop: dataplatform_near_social_feed_moderated_posts_var_pop_fields + var_samp: dataplatform_near_social_feed_moderated_posts_var_samp_fields + variance: dataplatform_near_social_feed_moderated_posts_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_moderated_posts_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.moderated_posts". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_moderated_posts_bool_exp { + _and: [dataplatform_near_social_feed_moderated_posts_bool_exp!] + _not: dataplatform_near_social_feed_moderated_posts_bool_exp + _or: [dataplatform_near_social_feed_moderated_posts_bool_exp!] + account_id: String_comparison_exp + accounts_liked: jsonb_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + comments: dataplatform_near_social_feed_moderated_comments_bool_exp + comments_aggregate: dataplatform_near_social_feed_moderated_comments_aggregate_bool_exp + content: String_comparison_exp + id: Int_comparison_exp + last_comment_timestamp: numeric_comparison_exp + post_likes: dataplatform_near_social_feed_post_likes_bool_exp + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_bool_exp + receipt_id: String_comparison_exp + verifications: dataplatform_near_verifications_account_bool_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_moderated_posts_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_moderated_posts_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.moderated_posts". +""" +input dataplatform_near_social_feed_moderated_posts_order_by { + account_id: order_by + accounts_liked: order_by + block_height: order_by + block_timestamp: order_by + comments_aggregate: dataplatform_near_social_feed_moderated_comments_aggregate_order_by + content: order_by + id: order_by + last_comment_timestamp: order_by + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_order_by + receipt_id: order_by + verifications: dataplatform_near_verifications_account_order_by +} + +""" +select columns of table "dataplatform_near_social_feed.moderated_posts" +""" +enum dataplatform_near_social_feed_moderated_posts_select_column { + """column name""" + account_id + + """column name""" + accounts_liked + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + last_comment_timestamp + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_moderated_posts_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_moderated_posts_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_moderated_posts_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_moderated_posts" +""" +input dataplatform_near_social_feed_moderated_posts_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_moderated_posts_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_moderated_posts_stream_cursor_value_input { + account_id: String + accounts_liked: jsonb + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_moderated_posts_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + last_comment_timestamp: numeric +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_moderated_posts_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_moderated_posts_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_moderated_posts_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +columns and relationships of "dataplatform_near_social_feed.post_likes" +""" +type dataplatform_near_social_feed_post_likes { + account_id: String! + block_height: numeric + block_timestamp: numeric! + + """An object relationship""" + post: dataplatform_near_social_feed_posts! + post_id: Int! + receipt_id: String! +} + +""" +aggregated selection of "dataplatform_near_social_feed.post_likes" +""" +type dataplatform_near_social_feed_post_likes_aggregate { + aggregate: dataplatform_near_social_feed_post_likes_aggregate_fields + nodes: [dataplatform_near_social_feed_post_likes!]! +} + +input dataplatform_near_social_feed_post_likes_aggregate_bool_exp { + count: dataplatform_near_social_feed_post_likes_aggregate_bool_exp_count +} + +input dataplatform_near_social_feed_post_likes_aggregate_bool_exp_count { + arguments: [dataplatform_near_social_feed_post_likes_select_column!] + distinct: Boolean + filter: dataplatform_near_social_feed_post_likes_bool_exp + predicate: Int_comparison_exp! +} + +""" +aggregate fields of "dataplatform_near_social_feed.post_likes" +""" +type dataplatform_near_social_feed_post_likes_aggregate_fields { + avg: dataplatform_near_social_feed_post_likes_avg_fields + count(columns: [dataplatform_near_social_feed_post_likes_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_post_likes_max_fields + min: dataplatform_near_social_feed_post_likes_min_fields + stddev: dataplatform_near_social_feed_post_likes_stddev_fields + stddev_pop: dataplatform_near_social_feed_post_likes_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_post_likes_stddev_samp_fields + sum: dataplatform_near_social_feed_post_likes_sum_fields + var_pop: dataplatform_near_social_feed_post_likes_var_pop_fields + var_samp: dataplatform_near_social_feed_post_likes_var_samp_fields + variance: dataplatform_near_social_feed_post_likes_variance_fields +} + +""" +order by aggregate values of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_aggregate_order_by { + avg: dataplatform_near_social_feed_post_likes_avg_order_by + count: order_by + max: dataplatform_near_social_feed_post_likes_max_order_by + min: dataplatform_near_social_feed_post_likes_min_order_by + stddev: dataplatform_near_social_feed_post_likes_stddev_order_by + stddev_pop: dataplatform_near_social_feed_post_likes_stddev_pop_order_by + stddev_samp: dataplatform_near_social_feed_post_likes_stddev_samp_order_by + sum: dataplatform_near_social_feed_post_likes_sum_order_by + var_pop: dataplatform_near_social_feed_post_likes_var_pop_order_by + var_samp: dataplatform_near_social_feed_post_likes_var_samp_order_by + variance: dataplatform_near_social_feed_post_likes_variance_order_by +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_post_likes_avg_fields { + block_height: Float + block_timestamp: Float + post_id: Float +} + +""" +order by avg() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_avg_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.post_likes". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_post_likes_bool_exp { + _and: [dataplatform_near_social_feed_post_likes_bool_exp!] + _not: dataplatform_near_social_feed_post_likes_bool_exp + _or: [dataplatform_near_social_feed_post_likes_bool_exp!] + account_id: String_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + post: dataplatform_near_social_feed_posts_bool_exp + post_id: Int_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_post_likes_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + post_id: Int + receipt_id: String +} + +""" +order by max() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_max_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + post_id: order_by + receipt_id: order_by +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_post_likes_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + post_id: Int + receipt_id: String +} + +""" +order by min() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_min_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + post_id: order_by + receipt_id: order_by +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.post_likes". +""" +input dataplatform_near_social_feed_post_likes_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + post: dataplatform_near_social_feed_posts_order_by + post_id: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_social_feed.post_likes" +""" +enum dataplatform_near_social_feed_post_likes_select_column { + """column name""" + account_id + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + post_id + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_post_likes_stddev_fields { + block_height: Float + block_timestamp: Float + post_id: Float +} + +""" +order by stddev() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_stddev_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_post_likes_stddev_pop_fields { + block_height: Float + block_timestamp: Float + post_id: Float +} + +""" +order by stddev_pop() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_stddev_pop_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_post_likes_stddev_samp_fields { + block_height: Float + block_timestamp: Float + post_id: Float +} + +""" +order by stddev_samp() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_stddev_samp_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_post_likes" +""" +input dataplatform_near_social_feed_post_likes_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_post_likes_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_post_likes_stream_cursor_value_input { + account_id: String + block_height: numeric + block_timestamp: numeric + post_id: Int + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_post_likes_sum_fields { + block_height: numeric + block_timestamp: numeric + post_id: Int +} + +""" +order by sum() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_sum_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_post_likes_var_pop_fields { + block_height: Float + block_timestamp: Float + post_id: Float +} + +""" +order by var_pop() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_var_pop_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_post_likes_var_samp_fields { + block_height: Float + block_timestamp: Float + post_id: Float +} + +""" +order by var_samp() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_var_samp_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_post_likes_variance_fields { + block_height: Float + block_timestamp: Float + post_id: Float +} + +""" +order by variance() on columns of table "dataplatform_near_social_feed.post_likes" +""" +input dataplatform_near_social_feed_post_likes_variance_order_by { + block_height: order_by + block_timestamp: order_by + post_id: order_by +} + +""" +columns and relationships of "dataplatform_near_social_feed.posts" +""" +type dataplatform_near_social_feed_posts { + account_id: String! + accounts_liked( + """JSON select path""" + path: String + ): jsonb! + accounts_reposted( + """JSON select path""" + path: String + ): jsonb! + block_height: numeric! + block_timestamp: numeric! + + """An array relationship""" + comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_comments_bool_exp + ): [dataplatform_near_social_feed_comments!]! + + """An aggregate relationship""" + comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_comments_bool_exp + ): dataplatform_near_social_feed_comments_aggregate! + content: String! + id: Int! + last_comment_timestamp: numeric + + """An array relationship""" + post_likes( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): [dataplatform_near_social_feed_post_likes!]! + + """An aggregate relationship""" + post_likes_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): dataplatform_near_social_feed_post_likes_aggregate! + receipt_id: String! + + """An object relationship""" + verifications: dataplatform_near_verifications_account +} + +""" +aggregated selection of "dataplatform_near_social_feed.posts" +""" +type dataplatform_near_social_feed_posts_aggregate { + aggregate: dataplatform_near_social_feed_posts_aggregate_fields + nodes: [dataplatform_near_social_feed_posts!]! +} + +""" +aggregate fields of "dataplatform_near_social_feed.posts" +""" +type dataplatform_near_social_feed_posts_aggregate_fields { + avg: dataplatform_near_social_feed_posts_avg_fields + count(columns: [dataplatform_near_social_feed_posts_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_posts_max_fields + min: dataplatform_near_social_feed_posts_min_fields + stddev: dataplatform_near_social_feed_posts_stddev_fields + stddev_pop: dataplatform_near_social_feed_posts_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_posts_stddev_samp_fields + sum: dataplatform_near_social_feed_posts_sum_fields + var_pop: dataplatform_near_social_feed_posts_var_pop_fields + var_samp: dataplatform_near_social_feed_posts_var_samp_fields + variance: dataplatform_near_social_feed_posts_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_posts_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.posts". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_posts_bool_exp { + _and: [dataplatform_near_social_feed_posts_bool_exp!] + _not: dataplatform_near_social_feed_posts_bool_exp + _or: [dataplatform_near_social_feed_posts_bool_exp!] + account_id: String_comparison_exp + accounts_liked: jsonb_comparison_exp + accounts_reposted: jsonb_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + comments: dataplatform_near_social_feed_comments_bool_exp + comments_aggregate: dataplatform_near_social_feed_comments_aggregate_bool_exp + content: String_comparison_exp + id: Int_comparison_exp + last_comment_timestamp: numeric_comparison_exp + post_likes: dataplatform_near_social_feed_post_likes_bool_exp + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_bool_exp + receipt_id: String_comparison_exp + verifications: dataplatform_near_verifications_account_bool_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_posts_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_posts_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.posts". +""" +input dataplatform_near_social_feed_posts_order_by { + account_id: order_by + accounts_liked: order_by + accounts_reposted: order_by + block_height: order_by + block_timestamp: order_by + comments_aggregate: dataplatform_near_social_feed_comments_aggregate_order_by + content: order_by + id: order_by + last_comment_timestamp: order_by + post_likes_aggregate: dataplatform_near_social_feed_post_likes_aggregate_order_by + receipt_id: order_by + verifications: dataplatform_near_verifications_account_order_by +} + +""" +select columns of table "dataplatform_near_social_feed.posts" +""" +enum dataplatform_near_social_feed_posts_select_column { + """column name""" + account_id + + """column name""" + accounts_liked + + """column name""" + accounts_reposted + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + last_comment_timestamp + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_posts_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_posts_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_posts_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_posts" +""" +input dataplatform_near_social_feed_posts_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_posts_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_posts_stream_cursor_value_input { + account_id: String + accounts_liked: jsonb + accounts_reposted: jsonb + block_height: numeric + block_timestamp: numeric + content: String + id: Int + last_comment_timestamp: numeric + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_posts_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + last_comment_timestamp: numeric +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_posts_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_posts_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_posts_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + last_comment_timestamp: Float +} + +""" +columns and relationships of "dataplatform_near_social_feed.promote" +""" +type dataplatform_near_social_feed_promote { + account_id: String! + block_height: numeric! + block_timestamp: numeric! + id: Int! + post_id: Int! + promotion_type: String! + receipt_id: String! +} + +""" +aggregated selection of "dataplatform_near_social_feed.promote" +""" +type dataplatform_near_social_feed_promote_aggregate { + aggregate: dataplatform_near_social_feed_promote_aggregate_fields + nodes: [dataplatform_near_social_feed_promote!]! +} + +""" +aggregate fields of "dataplatform_near_social_feed.promote" +""" +type dataplatform_near_social_feed_promote_aggregate_fields { + avg: dataplatform_near_social_feed_promote_avg_fields + count(columns: [dataplatform_near_social_feed_promote_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_promote_max_fields + min: dataplatform_near_social_feed_promote_min_fields + stddev: dataplatform_near_social_feed_promote_stddev_fields + stddev_pop: dataplatform_near_social_feed_promote_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_promote_stddev_samp_fields + sum: dataplatform_near_social_feed_promote_sum_fields + var_pop: dataplatform_near_social_feed_promote_var_pop_fields + var_samp: dataplatform_near_social_feed_promote_var_samp_fields + variance: dataplatform_near_social_feed_promote_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_promote_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.promote". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_promote_bool_exp { + _and: [dataplatform_near_social_feed_promote_bool_exp!] + _not: dataplatform_near_social_feed_promote_bool_exp + _or: [dataplatform_near_social_feed_promote_bool_exp!] + account_id: String_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + id: Int_comparison_exp + post_id: Int_comparison_exp + promotion_type: String_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_promote_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int + promotion_type: String + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_promote_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int + promotion_type: String + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.promote". +""" +input dataplatform_near_social_feed_promote_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + id: order_by + post_id: order_by + promotion_type: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_social_feed.promote" +""" +enum dataplatform_near_social_feed_promote_select_column { + """column name""" + account_id + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + id + + """column name""" + post_id + + """column name""" + promotion_type + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_promote_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_promote_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_promote_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_promote" +""" +input dataplatform_near_social_feed_promote_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_promote_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_promote_stream_cursor_value_input { + account_id: String + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int + promotion_type: String + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_promote_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_promote_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_promote_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_promote_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +columns and relationships of "dataplatform_near_social_feed.reposts" +""" +type dataplatform_near_social_feed_reposts { + account_id: String! + block_height: numeric! + block_timestamp: numeric! + content: String! + id: Int! + post_id: Int! + receipt_id: String! +} + +""" +aggregated selection of "dataplatform_near_social_feed.reposts" +""" +type dataplatform_near_social_feed_reposts_aggregate { + aggregate: dataplatform_near_social_feed_reposts_aggregate_fields + nodes: [dataplatform_near_social_feed_reposts!]! +} + +""" +aggregate fields of "dataplatform_near_social_feed.reposts" +""" +type dataplatform_near_social_feed_reposts_aggregate_fields { + avg: dataplatform_near_social_feed_reposts_avg_fields + count(columns: [dataplatform_near_social_feed_reposts_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_reposts_max_fields + min: dataplatform_near_social_feed_reposts_min_fields + stddev: dataplatform_near_social_feed_reposts_stddev_fields + stddev_pop: dataplatform_near_social_feed_reposts_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_reposts_stddev_samp_fields + sum: dataplatform_near_social_feed_reposts_sum_fields + var_pop: dataplatform_near_social_feed_reposts_var_pop_fields + var_samp: dataplatform_near_social_feed_reposts_var_samp_fields + variance: dataplatform_near_social_feed_reposts_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_reposts_avg_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.reposts". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_reposts_bool_exp { + _and: [dataplatform_near_social_feed_reposts_bool_exp!] + _not: dataplatform_near_social_feed_reposts_bool_exp + _or: [dataplatform_near_social_feed_reposts_bool_exp!] + account_id: String_comparison_exp + block_height: numeric_comparison_exp + block_timestamp: numeric_comparison_exp + content: String_comparison_exp + id: Int_comparison_exp + post_id: Int_comparison_exp + receipt_id: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_reposts_max_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_reposts_min_fields { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.reposts". +""" +input dataplatform_near_social_feed_reposts_order_by { + account_id: order_by + block_height: order_by + block_timestamp: order_by + content: order_by + id: order_by + post_id: order_by + receipt_id: order_by +} + +""" +select columns of table "dataplatform_near_social_feed.reposts" +""" +enum dataplatform_near_social_feed_reposts_select_column { + """column name""" + account_id + + """column name""" + block_height + + """column name""" + block_timestamp + + """column name""" + content + + """column name""" + id + + """column name""" + post_id + + """column name""" + receipt_id +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_reposts_stddev_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_reposts_stddev_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_reposts_stddev_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_reposts" +""" +input dataplatform_near_social_feed_reposts_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_reposts_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_reposts_stream_cursor_value_input { + account_id: String + block_height: numeric + block_timestamp: numeric + content: String + id: Int + post_id: Int + receipt_id: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_reposts_sum_fields { + block_height: numeric + block_timestamp: numeric + id: Int + post_id: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_reposts_var_pop_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_reposts_var_samp_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_reposts_variance_fields { + block_height: Float + block_timestamp: Float + id: Float + post_id: Float +} + +""" +columns and relationships of "dataplatform_near_social_feed.sys_logs" +""" +type dataplatform_near_social_feed_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_social_feed.sys_logs" +""" +type dataplatform_near_social_feed_sys_logs_aggregate { + aggregate: dataplatform_near_social_feed_sys_logs_aggregate_fields + nodes: [dataplatform_near_social_feed_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_social_feed.sys_logs" +""" +type dataplatform_near_social_feed_sys_logs_aggregate_fields { + avg: dataplatform_near_social_feed_sys_logs_avg_fields + count(columns: [dataplatform_near_social_feed_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_sys_logs_max_fields + min: dataplatform_near_social_feed_sys_logs_min_fields + stddev: dataplatform_near_social_feed_sys_logs_stddev_fields + stddev_pop: dataplatform_near_social_feed_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_social_feed_sys_logs_stddev_samp_fields + sum: dataplatform_near_social_feed_sys_logs_sum_fields + var_pop: dataplatform_near_social_feed_sys_logs_var_pop_fields + var_samp: dataplatform_near_social_feed_sys_logs_var_samp_fields + variance: dataplatform_near_social_feed_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_social_feed_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_sys_logs_bool_exp { + _and: [dataplatform_near_social_feed_sys_logs_bool_exp!] + _not: dataplatform_near_social_feed_sys_logs_bool_exp + _or: [dataplatform_near_social_feed_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.sys_logs". +""" +input dataplatform_near_social_feed_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_social_feed.sys_logs" +""" +enum dataplatform_near_social_feed_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_social_feed_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_social_feed_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_social_feed_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_sys_logs" +""" +input dataplatform_near_social_feed_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_social_feed_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_social_feed_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_social_feed_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_social_feed_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_social_feed.sys_metadata" +""" +type dataplatform_near_social_feed_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_social_feed.sys_metadata" +""" +type dataplatform_near_social_feed_sys_metadata_aggregate { + aggregate: dataplatform_near_social_feed_sys_metadata_aggregate_fields + nodes: [dataplatform_near_social_feed_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_social_feed.sys_metadata" +""" +type dataplatform_near_social_feed_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_social_feed_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_social_feed_sys_metadata_max_fields + min: dataplatform_near_social_feed_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_social_feed.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_social_feed_sys_metadata_bool_exp { + _and: [dataplatform_near_social_feed_sys_metadata_bool_exp!] + _not: dataplatform_near_social_feed_sys_metadata_bool_exp + _or: [dataplatform_near_social_feed_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_social_feed_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_social_feed_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_social_feed.sys_metadata". +""" +input dataplatform_near_social_feed_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_social_feed.sys_metadata" +""" +enum dataplatform_near_social_feed_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_social_feed_sys_metadata" +""" +input dataplatform_near_social_feed_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_social_feed_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_social_feed_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +""" +columns and relationships of "dataplatform_near_verifications.account" +""" +type dataplatform_near_verifications_account { + account_id: String! + human_provider: String + human_valid_until: timestamp + human_verification_level: String + kyc_provider: String + kyc_valid_until: timestamp + kyc_verification_level: String + social_trust_provider_1: String + social_trust_provider_2: String + social_trust_score_1: Int + social_trust_score_2: Int +} + +""" +aggregated selection of "dataplatform_near_verifications.account" +""" +type dataplatform_near_verifications_account_aggregate { + aggregate: dataplatform_near_verifications_account_aggregate_fields + nodes: [dataplatform_near_verifications_account!]! +} + +""" +aggregate fields of "dataplatform_near_verifications.account" +""" +type dataplatform_near_verifications_account_aggregate_fields { + avg: dataplatform_near_verifications_account_avg_fields + count(columns: [dataplatform_near_verifications_account_select_column!], distinct: Boolean): Int! + max: dataplatform_near_verifications_account_max_fields + min: dataplatform_near_verifications_account_min_fields + stddev: dataplatform_near_verifications_account_stddev_fields + stddev_pop: dataplatform_near_verifications_account_stddev_pop_fields + stddev_samp: dataplatform_near_verifications_account_stddev_samp_fields + sum: dataplatform_near_verifications_account_sum_fields + var_pop: dataplatform_near_verifications_account_var_pop_fields + var_samp: dataplatform_near_verifications_account_var_samp_fields + variance: dataplatform_near_verifications_account_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_verifications_account_avg_fields { + social_trust_score_1: Float + social_trust_score_2: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_verifications.account". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_verifications_account_bool_exp { + _and: [dataplatform_near_verifications_account_bool_exp!] + _not: dataplatform_near_verifications_account_bool_exp + _or: [dataplatform_near_verifications_account_bool_exp!] + account_id: String_comparison_exp + human_provider: String_comparison_exp + human_valid_until: timestamp_comparison_exp + human_verification_level: String_comparison_exp + kyc_provider: String_comparison_exp + kyc_valid_until: timestamp_comparison_exp + kyc_verification_level: String_comparison_exp + social_trust_provider_1: String_comparison_exp + social_trust_provider_2: String_comparison_exp + social_trust_score_1: Int_comparison_exp + social_trust_score_2: Int_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_verifications_account_max_fields { + account_id: String + human_provider: String + human_valid_until: timestamp + human_verification_level: String + kyc_provider: String + kyc_valid_until: timestamp + kyc_verification_level: String + social_trust_provider_1: String + social_trust_provider_2: String + social_trust_score_1: Int + social_trust_score_2: Int +} + +"""aggregate min on columns""" +type dataplatform_near_verifications_account_min_fields { + account_id: String + human_provider: String + human_valid_until: timestamp + human_verification_level: String + kyc_provider: String + kyc_valid_until: timestamp + kyc_verification_level: String + social_trust_provider_1: String + social_trust_provider_2: String + social_trust_score_1: Int + social_trust_score_2: Int +} + +""" +Ordering options when selecting data from "dataplatform_near_verifications.account". +""" +input dataplatform_near_verifications_account_order_by { + account_id: order_by + human_provider: order_by + human_valid_until: order_by + human_verification_level: order_by + kyc_provider: order_by + kyc_valid_until: order_by + kyc_verification_level: order_by + social_trust_provider_1: order_by + social_trust_provider_2: order_by + social_trust_score_1: order_by + social_trust_score_2: order_by +} + +""" +select columns of table "dataplatform_near_verifications.account" +""" +enum dataplatform_near_verifications_account_select_column { + """column name""" + account_id + + """column name""" + human_provider + + """column name""" + human_valid_until + + """column name""" + human_verification_level + + """column name""" + kyc_provider + + """column name""" + kyc_valid_until + + """column name""" + kyc_verification_level + + """column name""" + social_trust_provider_1 + + """column name""" + social_trust_provider_2 + + """column name""" + social_trust_score_1 + + """column name""" + social_trust_score_2 +} + +"""aggregate stddev on columns""" +type dataplatform_near_verifications_account_stddev_fields { + social_trust_score_1: Float + social_trust_score_2: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_verifications_account_stddev_pop_fields { + social_trust_score_1: Float + social_trust_score_2: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_verifications_account_stddev_samp_fields { + social_trust_score_1: Float + social_trust_score_2: Float +} + +""" +Streaming cursor of the table "dataplatform_near_verifications_account" +""" +input dataplatform_near_verifications_account_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_verifications_account_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_verifications_account_stream_cursor_value_input { + account_id: String + human_provider: String + human_valid_until: timestamp + human_verification_level: String + kyc_provider: String + kyc_valid_until: timestamp + kyc_verification_level: String + social_trust_provider_1: String + social_trust_provider_2: String + social_trust_score_1: Int + social_trust_score_2: Int +} + +"""aggregate sum on columns""" +type dataplatform_near_verifications_account_sum_fields { + social_trust_score_1: Int + social_trust_score_2: Int +} + +"""aggregate var_pop on columns""" +type dataplatform_near_verifications_account_var_pop_fields { + social_trust_score_1: Float + social_trust_score_2: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_verifications_account_var_samp_fields { + social_trust_score_1: Float + social_trust_score_2: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_verifications_account_variance_fields { + social_trust_score_1: Float + social_trust_score_2: Float +} + +""" +columns and relationships of "dataplatform_near_verifications.sys_logs" +""" +type dataplatform_near_verifications_sys_logs { + block_height: numeric + date: date! + id: bigint! + level: String! + message: String! + timestamp: timestamp! + type: String! +} + +""" +aggregated selection of "dataplatform_near_verifications.sys_logs" +""" +type dataplatform_near_verifications_sys_logs_aggregate { + aggregate: dataplatform_near_verifications_sys_logs_aggregate_fields + nodes: [dataplatform_near_verifications_sys_logs!]! +} + +""" +aggregate fields of "dataplatform_near_verifications.sys_logs" +""" +type dataplatform_near_verifications_sys_logs_aggregate_fields { + avg: dataplatform_near_verifications_sys_logs_avg_fields + count(columns: [dataplatform_near_verifications_sys_logs_select_column!], distinct: Boolean): Int! + max: dataplatform_near_verifications_sys_logs_max_fields + min: dataplatform_near_verifications_sys_logs_min_fields + stddev: dataplatform_near_verifications_sys_logs_stddev_fields + stddev_pop: dataplatform_near_verifications_sys_logs_stddev_pop_fields + stddev_samp: dataplatform_near_verifications_sys_logs_stddev_samp_fields + sum: dataplatform_near_verifications_sys_logs_sum_fields + var_pop: dataplatform_near_verifications_sys_logs_var_pop_fields + var_samp: dataplatform_near_verifications_sys_logs_var_samp_fields + variance: dataplatform_near_verifications_sys_logs_variance_fields +} + +"""aggregate avg on columns""" +type dataplatform_near_verifications_sys_logs_avg_fields { + block_height: Float + id: Float +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_verifications.sys_logs". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_verifications_sys_logs_bool_exp { + _and: [dataplatform_near_verifications_sys_logs_bool_exp!] + _not: dataplatform_near_verifications_sys_logs_bool_exp + _or: [dataplatform_near_verifications_sys_logs_bool_exp!] + block_height: numeric_comparison_exp + date: date_comparison_exp + id: bigint_comparison_exp + level: String_comparison_exp + message: String_comparison_exp + timestamp: timestamp_comparison_exp + type: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_verifications_sys_logs_max_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate min on columns""" +type dataplatform_near_verifications_sys_logs_min_fields { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +""" +Ordering options when selecting data from "dataplatform_near_verifications.sys_logs". +""" +input dataplatform_near_verifications_sys_logs_order_by { + block_height: order_by + date: order_by + id: order_by + level: order_by + message: order_by + timestamp: order_by + type: order_by +} + +""" +select columns of table "dataplatform_near_verifications.sys_logs" +""" +enum dataplatform_near_verifications_sys_logs_select_column { + """column name""" + block_height + + """column name""" + date + + """column name""" + id + + """column name""" + level + + """column name""" + message + + """column name""" + timestamp + + """column name""" + type +} + +"""aggregate stddev on columns""" +type dataplatform_near_verifications_sys_logs_stddev_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_pop on columns""" +type dataplatform_near_verifications_sys_logs_stddev_pop_fields { + block_height: Float + id: Float +} + +"""aggregate stddev_samp on columns""" +type dataplatform_near_verifications_sys_logs_stddev_samp_fields { + block_height: Float + id: Float +} + +""" +Streaming cursor of the table "dataplatform_near_verifications_sys_logs" +""" +input dataplatform_near_verifications_sys_logs_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_verifications_sys_logs_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_verifications_sys_logs_stream_cursor_value_input { + block_height: numeric + date: date + id: bigint + level: String + message: String + timestamp: timestamp + type: String +} + +"""aggregate sum on columns""" +type dataplatform_near_verifications_sys_logs_sum_fields { + block_height: numeric + id: bigint +} + +"""aggregate var_pop on columns""" +type dataplatform_near_verifications_sys_logs_var_pop_fields { + block_height: Float + id: Float +} + +"""aggregate var_samp on columns""" +type dataplatform_near_verifications_sys_logs_var_samp_fields { + block_height: Float + id: Float +} + +"""aggregate variance on columns""" +type dataplatform_near_verifications_sys_logs_variance_fields { + block_height: Float + id: Float +} + +""" +columns and relationships of "dataplatform_near_verifications.sys_metadata" +""" +type dataplatform_near_verifications_sys_metadata { + attribute: String! + value: String! +} + +""" +aggregated selection of "dataplatform_near_verifications.sys_metadata" +""" +type dataplatform_near_verifications_sys_metadata_aggregate { + aggregate: dataplatform_near_verifications_sys_metadata_aggregate_fields + nodes: [dataplatform_near_verifications_sys_metadata!]! +} + +""" +aggregate fields of "dataplatform_near_verifications.sys_metadata" +""" +type dataplatform_near_verifications_sys_metadata_aggregate_fields { + count(columns: [dataplatform_near_verifications_sys_metadata_select_column!], distinct: Boolean): Int! + max: dataplatform_near_verifications_sys_metadata_max_fields + min: dataplatform_near_verifications_sys_metadata_min_fields +} + +""" +Boolean expression to filter rows from the table "dataplatform_near_verifications.sys_metadata". All fields are combined with a logical 'AND'. +""" +input dataplatform_near_verifications_sys_metadata_bool_exp { + _and: [dataplatform_near_verifications_sys_metadata_bool_exp!] + _not: dataplatform_near_verifications_sys_metadata_bool_exp + _or: [dataplatform_near_verifications_sys_metadata_bool_exp!] + attribute: String_comparison_exp + value: String_comparison_exp +} + +"""aggregate max on columns""" +type dataplatform_near_verifications_sys_metadata_max_fields { + attribute: String + value: String +} + +"""aggregate min on columns""" +type dataplatform_near_verifications_sys_metadata_min_fields { + attribute: String + value: String +} + +""" +Ordering options when selecting data from "dataplatform_near_verifications.sys_metadata". +""" +input dataplatform_near_verifications_sys_metadata_order_by { + attribute: order_by + value: order_by +} + +""" +select columns of table "dataplatform_near_verifications.sys_metadata" +""" +enum dataplatform_near_verifications_sys_metadata_select_column { + """column name""" + attribute + + """column name""" + value +} + +""" +Streaming cursor of the table "dataplatform_near_verifications_sys_metadata" +""" +input dataplatform_near_verifications_sys_metadata_stream_cursor_input { + """Stream column input with initial value""" + initial_value: dataplatform_near_verifications_sys_metadata_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input dataplatform_near_verifications_sys_metadata_stream_cursor_value_input { + attribute: String + value: String +} + +scalar date + +""" +Boolean expression to compare columns of type "date". All fields are combined with logical 'AND'. +""" +input date_comparison_exp { + _eq: date + _gt: date + _gte: date + _in: [date!] + _is_null: Boolean + _lt: date + _lte: date + _neq: date + _nin: [date!] +} + +""" +columns and relationships of "impressions" +""" +type impressions { + component_author_id: String + component_name: String + impressions: Int +} + +""" +aggregated selection of "impressions" +""" +type impressions_aggregate { + aggregate: impressions_aggregate_fields + nodes: [impressions!]! +} + +""" +aggregate fields of "impressions" +""" +type impressions_aggregate_fields { + avg: impressions_avg_fields + count(columns: [impressions_select_column!], distinct: Boolean): Int! + max: impressions_max_fields + min: impressions_min_fields + stddev: impressions_stddev_fields + stddev_pop: impressions_stddev_pop_fields + stddev_samp: impressions_stddev_samp_fields + sum: impressions_sum_fields + var_pop: impressions_var_pop_fields + var_samp: impressions_var_samp_fields + variance: impressions_variance_fields +} + +"""aggregate avg on columns""" +type impressions_avg_fields { + impressions: Float +} + +""" +Boolean expression to filter rows from the table "impressions". All fields are combined with a logical 'AND'. +""" +input impressions_bool_exp { + _and: [impressions_bool_exp!] + _not: impressions_bool_exp + _or: [impressions_bool_exp!] + component_author_id: String_comparison_exp + component_name: String_comparison_exp + impressions: Int_comparison_exp +} + +"""aggregate max on columns""" +type impressions_max_fields { + component_author_id: String + component_name: String + impressions: Int +} + +"""aggregate min on columns""" +type impressions_min_fields { + component_author_id: String + component_name: String + impressions: Int +} + +"""Ordering options when selecting data from "impressions".""" +input impressions_order_by { + component_author_id: order_by + component_name: order_by + impressions: order_by +} + +""" +select columns of table "impressions" +""" +enum impressions_select_column { + """column name""" + component_author_id + + """column name""" + component_name + + """column name""" + impressions +} + +"""aggregate stddev on columns""" +type impressions_stddev_fields { + impressions: Float +} + +"""aggregate stddev_pop on columns""" +type impressions_stddev_pop_fields { + impressions: Float +} + +"""aggregate stddev_samp on columns""" +type impressions_stddev_samp_fields { + impressions: Float +} + +""" +Streaming cursor of the table "impressions" +""" +input impressions_stream_cursor_input { + """Stream column input with initial value""" + initial_value: impressions_stream_cursor_value_input! + + """cursor ordering""" + ordering: cursor_ordering +} + +"""Initial value of the column from where the streaming should start""" +input impressions_stream_cursor_value_input { + component_author_id: String + component_name: String + impressions: Int +} + +"""aggregate sum on columns""" +type impressions_sum_fields { + impressions: Int +} + +"""aggregate var_pop on columns""" +type impressions_var_pop_fields { + impressions: Float +} + +"""aggregate var_samp on columns""" +type impressions_var_samp_fields { + impressions: Float +} + +"""aggregate variance on columns""" +type impressions_variance_fields { + impressions: Float +} + +scalar jsonb + +input jsonb_cast_exp { + String: String_comparison_exp +} + +""" +Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. +""" +input jsonb_comparison_exp { + _cast: jsonb_cast_exp + + """is the column contained in the given json value""" + _contained_in: jsonb + + """does the column contain the given json value at the top level""" + _contains: jsonb + _eq: jsonb + _gt: jsonb + _gte: jsonb + + """does the string exist as a top-level key in the column""" + _has_key: String + + """do all of these strings exist as top-level keys in the column""" + _has_keys_all: [String!] + + """do any of these strings exist as top-level keys in the column""" + _has_keys_any: [String!] + _in: [jsonb!] + _is_null: Boolean + _lt: jsonb + _lte: jsonb + _neq: jsonb + _nin: [jsonb!] +} + +scalar numeric + +""" +Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. +""" +input numeric_comparison_exp { + _eq: numeric + _gt: numeric + _gte: numeric + _in: [numeric!] + _is_null: Boolean + _lt: numeric + _lte: numeric + _neq: numeric + _nin: [numeric!] +} + +"""column ordering options""" +enum order_by { + """in ascending order, nulls last""" + asc + + """in ascending order, nulls first""" + asc_nulls_first + + """in ascending order, nulls last""" + asc_nulls_last + + """in descending order, nulls first""" + desc + + """in descending order, nulls first""" + desc_nulls_first + + """in descending order, nulls last""" + desc_nulls_last +} + +type query_root { + """ + fetch data from the table: "dataplatform_near_access_keys_v1.access_keys_v1" + """ + dataplatform_near_access_keys_v1_access_keys_v1( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_access_keys_v1_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_access_keys_v1_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_access_keys_v1_bool_exp + ): [dataplatform_near_access_keys_v1_access_keys_v1!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_access_keys_v1.access_keys_v1" + """ + dataplatform_near_access_keys_v1_access_keys_v1_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_access_keys_v1_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_access_keys_v1_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_access_keys_v1_bool_exp + ): dataplatform_near_access_keys_v1_access_keys_v1_aggregate! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.access_keys_v1" using primary key columns + """ + dataplatform_near_access_keys_v1_access_keys_v1_by_pk(account_id: String!, public_key: String!): dataplatform_near_access_keys_v1_access_keys_v1 + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_logs" + """ + dataplatform_near_access_keys_v1_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_logs_bool_exp + ): [dataplatform_near_access_keys_v1_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_access_keys_v1.sys_logs" + """ + dataplatform_near_access_keys_v1_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_logs_bool_exp + ): dataplatform_near_access_keys_v1_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_logs" using primary key columns + """ + dataplatform_near_access_keys_v1_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_access_keys_v1_sys_logs + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_metadata" + """ + dataplatform_near_access_keys_v1_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_metadata_bool_exp + ): [dataplatform_near_access_keys_v1_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_access_keys_v1.sys_metadata" + """ + dataplatform_near_access_keys_v1_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_metadata_bool_exp + ): dataplatform_near_access_keys_v1_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_metadata" using primary key columns + """ + dataplatform_near_access_keys_v1_sys_metadata_by_pk(attribute: String!): dataplatform_near_access_keys_v1_sys_metadata + + """ + fetch data from the table: "dataplatform_near_accounts.accounts" + """ + dataplatform_near_accounts_accounts( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_accounts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_accounts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_accounts_bool_exp + ): [dataplatform_near_accounts_accounts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_accounts.accounts" + """ + dataplatform_near_accounts_accounts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_accounts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_accounts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_accounts_bool_exp + ): dataplatform_near_accounts_accounts_aggregate! + + """ + fetch data from the table: "dataplatform_near_accounts.accounts" using primary key columns + """ + dataplatform_near_accounts_accounts_by_pk(account_id: String!): dataplatform_near_accounts_accounts + + """ + fetch data from the table: "dataplatform_near_accounts.sys_logs" + """ + dataplatform_near_accounts_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_logs_bool_exp + ): [dataplatform_near_accounts_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_accounts.sys_logs" + """ + dataplatform_near_accounts_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_logs_bool_exp + ): dataplatform_near_accounts_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_accounts.sys_logs" using primary key columns + """ + dataplatform_near_accounts_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_accounts_sys_logs + + """ + fetch data from the table: "dataplatform_near_accounts.sys_metadata" + """ + dataplatform_near_accounts_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_metadata_bool_exp + ): [dataplatform_near_accounts_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_accounts.sys_metadata" + """ + dataplatform_near_accounts_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_metadata_bool_exp + ): dataplatform_near_accounts_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_accounts.sys_metadata" using primary key columns + """ + dataplatform_near_accounts_sys_metadata_by_pk(attribute: String!): dataplatform_near_accounts_sys_metadata + + """ + fetch data from the table: "dataplatform_near_components.metadata" + """ + dataplatform_near_components_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_metadata_bool_exp + ): [dataplatform_near_components_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.metadata" + """ + dataplatform_near_components_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_metadata_bool_exp + ): dataplatform_near_components_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.metadata" using primary key columns + """ + dataplatform_near_components_metadata_by_pk(component_id: String!): dataplatform_near_components_metadata + + """ + fetch data from the table: "dataplatform_near_components.sys_logs" + """ + dataplatform_near_components_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_logs_bool_exp + ): [dataplatform_near_components_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.sys_logs" + """ + dataplatform_near_components_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_logs_bool_exp + ): dataplatform_near_components_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.sys_logs" using primary key columns + """ + dataplatform_near_components_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_components_sys_logs + + """ + fetch data from the table: "dataplatform_near_components.sys_metadata" + """ + dataplatform_near_components_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_metadata_bool_exp + ): [dataplatform_near_components_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.sys_metadata" + """ + dataplatform_near_components_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_metadata_bool_exp + ): dataplatform_near_components_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.sys_metadata" using primary key columns + """ + dataplatform_near_components_sys_metadata_by_pk(attribute: String!): dataplatform_near_components_sys_metadata + + """ + fetch data from the table: "dataplatform_near_components.versions" + """ + dataplatform_near_components_versions( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_versions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_versions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_versions_bool_exp + ): [dataplatform_near_components_versions!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.versions" + """ + dataplatform_near_components_versions_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_versions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_versions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_versions_bool_exp + ): dataplatform_near_components_versions_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.versions" using primary key columns + """ + dataplatform_near_components_versions_by_pk(id: Int!): dataplatform_near_components_versions + + """ + fetch data from the table: "dataplatform_near_entities.entities" + """ + dataplatform_near_entities_entities( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_entities_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_entities_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_entities_bool_exp + ): [dataplatform_near_entities_entities!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.entities" + """ + dataplatform_near_entities_entities_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_entities_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_entities_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_entities_bool_exp + ): dataplatform_near_entities_entities_aggregate! + + """ + fetch data from the table: "dataplatform_near_entities.entities" using primary key columns + """ + dataplatform_near_entities_entities_by_pk(account_id: String!, entity_type: String!, name: String!): dataplatform_near_entities_entities + + """ + fetch data from the table: "dataplatform_near_entities.sys_logs" + """ + dataplatform_near_entities_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_logs_bool_exp + ): [dataplatform_near_entities_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.sys_logs" + """ + dataplatform_near_entities_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_logs_bool_exp + ): dataplatform_near_entities_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_entities.sys_logs" using primary key columns + """ + dataplatform_near_entities_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_entities_sys_logs + + """ + fetch data from the table: "dataplatform_near_entities.sys_metadata" + """ + dataplatform_near_entities_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_metadata_bool_exp + ): [dataplatform_near_entities_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.sys_metadata" + """ + dataplatform_near_entities_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_metadata_bool_exp + ): dataplatform_near_entities_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_entities.sys_metadata" using primary key columns + """ + dataplatform_near_entities_sys_metadata_by_pk(attribute: String!): dataplatform_near_entities_sys_metadata + + """ + fetch data from the table: "dataplatform_near_entities.tags" + """ + dataplatform_near_entities_tags( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_tags_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_tags_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_tags_bool_exp + ): [dataplatform_near_entities_tags!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.tags" + """ + dataplatform_near_entities_tags_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_tags_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_tags_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_tags_bool_exp + ): dataplatform_near_entities_tags_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.moderated_comments" + """ + dataplatform_near_feed_moderated_comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): [dataplatform_near_feed_moderated_comments!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.moderated_comments" + """ + dataplatform_near_feed_moderated_comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): dataplatform_near_feed_moderated_comments_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.moderated_posts" + """ + dataplatform_near_feed_moderated_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_bool_exp + ): [dataplatform_near_feed_moderated_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.moderated_posts" + """ + dataplatform_near_feed_moderated_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_bool_exp + ): dataplatform_near_feed_moderated_posts_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.moderated_posts_with_reposts_feed" + """ + dataplatform_near_feed_moderated_posts_with_reposts_feed( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_with_reposts_feed_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_with_reposts_feed_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp + ): [dataplatform_near_feed_moderated_posts_with_reposts_feed!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.moderated_posts_with_reposts_feed" + """ + dataplatform_near_feed_moderated_posts_with_reposts_feed_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_with_reposts_feed_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_with_reposts_feed_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp + ): dataplatform_near_feed_moderated_posts_with_reposts_feed_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.promoted_blog_posts" + """ + dataplatform_near_feed_promoted_blog_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_promoted_blog_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_promoted_blog_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_promoted_blog_posts_bool_exp + ): [dataplatform_near_feed_promoted_blog_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.promoted_blog_posts" + """ + dataplatform_near_feed_promoted_blog_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_promoted_blog_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_promoted_blog_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_promoted_blog_posts_bool_exp + ): dataplatform_near_feed_promoted_blog_posts_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.sys_logs" + """ + dataplatform_near_feed_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_logs_bool_exp + ): [dataplatform_near_feed_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.sys_logs" + """ + dataplatform_near_feed_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_logs_bool_exp + ): dataplatform_near_feed_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.sys_logs" using primary key columns + """ + dataplatform_near_feed_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_feed_sys_logs + + """ + fetch data from the table: "dataplatform_near_feed.sys_metadata" + """ + dataplatform_near_feed_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_metadata_bool_exp + ): [dataplatform_near_feed_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.sys_metadata" + """ + dataplatform_near_feed_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_metadata_bool_exp + ): dataplatform_near_feed_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.sys_metadata" using primary key columns + """ + dataplatform_near_feed_sys_metadata_by_pk(attribute: String!): dataplatform_near_feed_sys_metadata + + """ + fetch data from the table: "dataplatform_near_moderation.moderation_decisions" + """ + dataplatform_near_moderation_moderation_decisions( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_decisions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_decisions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_decisions_bool_exp + ): [dataplatform_near_moderation_moderation_decisions!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.moderation_decisions" + """ + dataplatform_near_moderation_moderation_decisions_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_decisions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_decisions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_decisions_bool_exp + ): dataplatform_near_moderation_moderation_decisions_aggregate! + + """ + fetch data from the table: "dataplatform_near_moderation.moderation_reporting" + """ + dataplatform_near_moderation_moderation_reporting( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_reporting_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_reporting_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_reporting_bool_exp + ): [dataplatform_near_moderation_moderation_reporting!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.moderation_reporting" + """ + dataplatform_near_moderation_moderation_reporting_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_reporting_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_reporting_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_reporting_bool_exp + ): dataplatform_near_moderation_moderation_reporting_aggregate! + + """ + fetch data from the table: "dataplatform_near_moderation.needs_moderation" + """ + dataplatform_near_moderation_needs_moderation( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_needs_moderation_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_needs_moderation_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_needs_moderation_bool_exp + ): [dataplatform_near_moderation_needs_moderation!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.needs_moderation" + """ + dataplatform_near_moderation_needs_moderation_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_needs_moderation_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_needs_moderation_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_needs_moderation_bool_exp + ): dataplatform_near_moderation_needs_moderation_aggregate! + + """ + fetch data from the table: "dataplatform_near_moderation.sys_logs" + """ + dataplatform_near_moderation_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_logs_bool_exp + ): [dataplatform_near_moderation_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.sys_logs" + """ + dataplatform_near_moderation_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_logs_bool_exp + ): dataplatform_near_moderation_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_moderation.sys_logs" using primary key columns + """ + dataplatform_near_moderation_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_moderation_sys_logs + + """ + fetch data from the table: "dataplatform_near_moderation.sys_metadata" + """ + dataplatform_near_moderation_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_metadata_bool_exp + ): [dataplatform_near_moderation_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.sys_metadata" + """ + dataplatform_near_moderation_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_metadata_bool_exp + ): dataplatform_near_moderation_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_moderation.sys_metadata" using primary key columns + """ + dataplatform_near_moderation_sys_metadata_by_pk(attribute: String!): dataplatform_near_moderation_sys_metadata + + """ + fetch data from the table: "dataplatform_near_moderation.unmoderated_reports" + """ + dataplatform_near_moderation_unmoderated_reports( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_unmoderated_reports_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_unmoderated_reports_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_unmoderated_reports_bool_exp + ): [dataplatform_near_moderation_unmoderated_reports!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.unmoderated_reports" + """ + dataplatform_near_moderation_unmoderated_reports_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_unmoderated_reports_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_unmoderated_reports_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_unmoderated_reports_bool_exp + ): dataplatform_near_moderation_unmoderated_reports_aggregate! + + """ + fetch data from the table: "dataplatform_near_notifications.notifications" + """ + dataplatform_near_notifications_notifications( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_notifications_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_notifications_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_notifications_bool_exp + ): [dataplatform_near_notifications_notifications!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_notifications.notifications" + """ + dataplatform_near_notifications_notifications_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_notifications_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_notifications_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_notifications_bool_exp + ): dataplatform_near_notifications_notifications_aggregate! + + """ + fetch data from the table: "dataplatform_near_notifications.notifications" using primary key columns + """ + dataplatform_near_notifications_notifications_by_pk(id: Int!): dataplatform_near_notifications_notifications + + """ + fetch data from the table: "dataplatform_near_notifications.sys_logs" + """ + dataplatform_near_notifications_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_logs_bool_exp + ): [dataplatform_near_notifications_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_notifications.sys_logs" + """ + dataplatform_near_notifications_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_logs_bool_exp + ): dataplatform_near_notifications_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_notifications.sys_logs" using primary key columns + """ + dataplatform_near_notifications_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_notifications_sys_logs + + """ + fetch data from the table: "dataplatform_near_notifications.sys_metadata" + """ + dataplatform_near_notifications_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_metadata_bool_exp + ): [dataplatform_near_notifications_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_notifications.sys_metadata" + """ + dataplatform_near_notifications_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_metadata_bool_exp + ): dataplatform_near_notifications_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_notifications.sys_metadata" using primary key columns + """ + dataplatform_near_notifications_sys_metadata_by_pk(attribute: String!): dataplatform_near_notifications_sys_metadata + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.bitmaps" + """ + dataplatform_near_receiver_blocks_bitmaps( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_bitmaps_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_bitmaps_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_bitmaps_bool_exp + ): [dataplatform_near_receiver_blocks_bitmaps!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.bitmaps" + """ + dataplatform_near_receiver_blocks_bitmaps_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_bitmaps_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_bitmaps_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_bitmaps_bool_exp + ): dataplatform_near_receiver_blocks_bitmaps_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.bitmaps" using primary key columns + """ + dataplatform_near_receiver_blocks_bitmaps_by_pk(block_date: date!, receiver_id: bigint!): dataplatform_near_receiver_blocks_bitmaps + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.receivers" + """ + dataplatform_near_receiver_blocks_receivers( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_receivers_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_receivers_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_receivers_bool_exp + ): [dataplatform_near_receiver_blocks_receivers!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.receivers" + """ + dataplatform_near_receiver_blocks_receivers_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_receivers_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_receivers_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_receivers_bool_exp + ): dataplatform_near_receiver_blocks_receivers_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.receivers" using primary key columns + """ + dataplatform_near_receiver_blocks_receivers_by_pk(id: bigint!): dataplatform_near_receiver_blocks_receivers + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_logs" + """ + dataplatform_near_receiver_blocks_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_logs_bool_exp + ): [dataplatform_near_receiver_blocks_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.sys_logs" + """ + dataplatform_near_receiver_blocks_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_logs_bool_exp + ): dataplatform_near_receiver_blocks_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_logs" using primary key columns + """ + dataplatform_near_receiver_blocks_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_receiver_blocks_sys_logs + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_metadata" + """ + dataplatform_near_receiver_blocks_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_metadata_bool_exp + ): [dataplatform_near_receiver_blocks_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.sys_metadata" + """ + dataplatform_near_receiver_blocks_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_metadata_bool_exp + ): dataplatform_near_receiver_blocks_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_metadata" using primary key columns + """ + dataplatform_near_receiver_blocks_sys_metadata_by_pk(attribute: String!): dataplatform_near_receiver_blocks_sys_metadata + + """ + fetch data from the table: "dataplatform_near_social_feed.comments" + """ + dataplatform_near_social_feed_comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_comments_bool_exp + ): [dataplatform_near_social_feed_comments!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.comments" + """ + dataplatform_near_social_feed_comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_comments_bool_exp + ): dataplatform_near_social_feed_comments_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.comments" using primary key columns + """ + dataplatform_near_social_feed_comments_by_pk(id: Int!): dataplatform_near_social_feed_comments + + """ + fetch data from the table: "dataplatform_near_social_feed.moderated_comments" + """ + dataplatform_near_social_feed_moderated_comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_comments_bool_exp + ): [dataplatform_near_social_feed_moderated_comments!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.moderated_comments" + """ + dataplatform_near_social_feed_moderated_comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_comments_bool_exp + ): dataplatform_near_social_feed_moderated_comments_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.moderated_posts" + """ + dataplatform_near_social_feed_moderated_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_posts_bool_exp + ): [dataplatform_near_social_feed_moderated_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.moderated_posts" + """ + dataplatform_near_social_feed_moderated_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_posts_bool_exp + ): dataplatform_near_social_feed_moderated_posts_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.post_likes" + """ + dataplatform_near_social_feed_post_likes( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): [dataplatform_near_social_feed_post_likes!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.post_likes" + """ + dataplatform_near_social_feed_post_likes_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): dataplatform_near_social_feed_post_likes_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.post_likes" using primary key columns + """ + dataplatform_near_social_feed_post_likes_by_pk(account_id: String!, post_id: Int!): dataplatform_near_social_feed_post_likes + + """ + fetch data from the table: "dataplatform_near_social_feed.posts" + """ + dataplatform_near_social_feed_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_posts_bool_exp + ): [dataplatform_near_social_feed_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.posts" + """ + dataplatform_near_social_feed_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_posts_bool_exp + ): dataplatform_near_social_feed_posts_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.posts" using primary key columns + """ + dataplatform_near_social_feed_posts_by_pk(id: Int!): dataplatform_near_social_feed_posts + + """ + fetch data from the table: "dataplatform_near_social_feed.promote" + """ + dataplatform_near_social_feed_promote( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_promote_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_promote_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_promote_bool_exp + ): [dataplatform_near_social_feed_promote!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.promote" + """ + dataplatform_near_social_feed_promote_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_promote_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_promote_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_promote_bool_exp + ): dataplatform_near_social_feed_promote_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.reposts" + """ + dataplatform_near_social_feed_reposts( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_reposts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_reposts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_reposts_bool_exp + ): [dataplatform_near_social_feed_reposts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.reposts" + """ + dataplatform_near_social_feed_reposts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_reposts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_reposts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_reposts_bool_exp + ): dataplatform_near_social_feed_reposts_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.reposts" using primary key columns + """ + dataplatform_near_social_feed_reposts_by_pk(account_id: String!, post_id: Int!): dataplatform_near_social_feed_reposts + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_logs" + """ + dataplatform_near_social_feed_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_logs_bool_exp + ): [dataplatform_near_social_feed_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.sys_logs" + """ + dataplatform_near_social_feed_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_logs_bool_exp + ): dataplatform_near_social_feed_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_logs" using primary key columns + """ + dataplatform_near_social_feed_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_social_feed_sys_logs + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_metadata" + """ + dataplatform_near_social_feed_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_metadata_bool_exp + ): [dataplatform_near_social_feed_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.sys_metadata" + """ + dataplatform_near_social_feed_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_metadata_bool_exp + ): dataplatform_near_social_feed_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_metadata" using primary key columns + """ + dataplatform_near_social_feed_sys_metadata_by_pk(attribute: String!): dataplatform_near_social_feed_sys_metadata + + """ + fetch data from the table: "dataplatform_near_verifications.account" + """ + dataplatform_near_verifications_account( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_account_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_account_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_account_bool_exp + ): [dataplatform_near_verifications_account!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_verifications.account" + """ + dataplatform_near_verifications_account_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_account_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_account_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_account_bool_exp + ): dataplatform_near_verifications_account_aggregate! + + """ + fetch data from the table: "dataplatform_near_verifications.account" using primary key columns + """ + dataplatform_near_verifications_account_by_pk(account_id: String!): dataplatform_near_verifications_account + + """ + fetch data from the table: "dataplatform_near_verifications.sys_logs" + """ + dataplatform_near_verifications_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_logs_bool_exp + ): [dataplatform_near_verifications_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_verifications.sys_logs" + """ + dataplatform_near_verifications_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_logs_bool_exp + ): dataplatform_near_verifications_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_verifications.sys_logs" using primary key columns + """ + dataplatform_near_verifications_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_verifications_sys_logs + + """ + fetch data from the table: "dataplatform_near_verifications.sys_metadata" + """ + dataplatform_near_verifications_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_metadata_bool_exp + ): [dataplatform_near_verifications_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_verifications.sys_metadata" + """ + dataplatform_near_verifications_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_metadata_bool_exp + ): dataplatform_near_verifications_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_verifications.sys_metadata" using primary key columns + """ + dataplatform_near_verifications_sys_metadata_by_pk(attribute: String!): dataplatform_near_verifications_sys_metadata + + """ + fetch data from the table: "impressions" + """ + impressions( + """distinct select on columns""" + distinct_on: [impressions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [impressions_order_by!] + + """filter the rows returned""" + where: impressions_bool_exp + ): [impressions!]! + + """ + fetch aggregated fields from the table: "impressions" + """ + impressions_aggregate( + """distinct select on columns""" + distinct_on: [impressions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [impressions_order_by!] + + """filter the rows returned""" + where: impressions_bool_exp + ): impressions_aggregate! +} + +type subscription_root { + """ + fetch data from the table: "dataplatform_near_access_keys_v1.access_keys_v1" + """ + dataplatform_near_access_keys_v1_access_keys_v1( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_access_keys_v1_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_access_keys_v1_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_access_keys_v1_bool_exp + ): [dataplatform_near_access_keys_v1_access_keys_v1!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_access_keys_v1.access_keys_v1" + """ + dataplatform_near_access_keys_v1_access_keys_v1_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_access_keys_v1_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_access_keys_v1_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_access_keys_v1_bool_exp + ): dataplatform_near_access_keys_v1_access_keys_v1_aggregate! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.access_keys_v1" using primary key columns + """ + dataplatform_near_access_keys_v1_access_keys_v1_by_pk(account_id: String!, public_key: String!): dataplatform_near_access_keys_v1_access_keys_v1 + + """ + fetch data from the table in a streaming manner: "dataplatform_near_access_keys_v1.access_keys_v1" + """ + dataplatform_near_access_keys_v1_access_keys_v1_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_access_keys_v1_access_keys_v1_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_access_keys_v1_bool_exp + ): [dataplatform_near_access_keys_v1_access_keys_v1!]! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_logs" + """ + dataplatform_near_access_keys_v1_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_logs_bool_exp + ): [dataplatform_near_access_keys_v1_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_access_keys_v1.sys_logs" + """ + dataplatform_near_access_keys_v1_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_logs_bool_exp + ): dataplatform_near_access_keys_v1_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_logs" using primary key columns + """ + dataplatform_near_access_keys_v1_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_access_keys_v1_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_access_keys_v1.sys_logs" + """ + dataplatform_near_access_keys_v1_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_access_keys_v1_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_logs_bool_exp + ): [dataplatform_near_access_keys_v1_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_metadata" + """ + dataplatform_near_access_keys_v1_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_metadata_bool_exp + ): [dataplatform_near_access_keys_v1_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_access_keys_v1.sys_metadata" + """ + dataplatform_near_access_keys_v1_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_access_keys_v1_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_access_keys_v1_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_metadata_bool_exp + ): dataplatform_near_access_keys_v1_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_access_keys_v1.sys_metadata" using primary key columns + """ + dataplatform_near_access_keys_v1_sys_metadata_by_pk(attribute: String!): dataplatform_near_access_keys_v1_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_access_keys_v1.sys_metadata" + """ + dataplatform_near_access_keys_v1_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_access_keys_v1_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_access_keys_v1_sys_metadata_bool_exp + ): [dataplatform_near_access_keys_v1_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_accounts.accounts" + """ + dataplatform_near_accounts_accounts( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_accounts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_accounts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_accounts_bool_exp + ): [dataplatform_near_accounts_accounts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_accounts.accounts" + """ + dataplatform_near_accounts_accounts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_accounts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_accounts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_accounts_bool_exp + ): dataplatform_near_accounts_accounts_aggregate! + + """ + fetch data from the table: "dataplatform_near_accounts.accounts" using primary key columns + """ + dataplatform_near_accounts_accounts_by_pk(account_id: String!): dataplatform_near_accounts_accounts + + """ + fetch data from the table in a streaming manner: "dataplatform_near_accounts.accounts" + """ + dataplatform_near_accounts_accounts_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_accounts_accounts_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_accounts_accounts_bool_exp + ): [dataplatform_near_accounts_accounts!]! + + """ + fetch data from the table: "dataplatform_near_accounts.sys_logs" + """ + dataplatform_near_accounts_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_logs_bool_exp + ): [dataplatform_near_accounts_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_accounts.sys_logs" + """ + dataplatform_near_accounts_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_logs_bool_exp + ): dataplatform_near_accounts_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_accounts.sys_logs" using primary key columns + """ + dataplatform_near_accounts_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_accounts_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_accounts.sys_logs" + """ + dataplatform_near_accounts_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_accounts_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_logs_bool_exp + ): [dataplatform_near_accounts_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_accounts.sys_metadata" + """ + dataplatform_near_accounts_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_metadata_bool_exp + ): [dataplatform_near_accounts_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_accounts.sys_metadata" + """ + dataplatform_near_accounts_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_accounts_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_accounts_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_metadata_bool_exp + ): dataplatform_near_accounts_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_accounts.sys_metadata" using primary key columns + """ + dataplatform_near_accounts_sys_metadata_by_pk(attribute: String!): dataplatform_near_accounts_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_accounts.sys_metadata" + """ + dataplatform_near_accounts_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_accounts_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_accounts_sys_metadata_bool_exp + ): [dataplatform_near_accounts_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_components.metadata" + """ + dataplatform_near_components_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_metadata_bool_exp + ): [dataplatform_near_components_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.metadata" + """ + dataplatform_near_components_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_metadata_bool_exp + ): dataplatform_near_components_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.metadata" using primary key columns + """ + dataplatform_near_components_metadata_by_pk(component_id: String!): dataplatform_near_components_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_components.metadata" + """ + dataplatform_near_components_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_components_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_components_metadata_bool_exp + ): [dataplatform_near_components_metadata!]! + + """ + fetch data from the table: "dataplatform_near_components.sys_logs" + """ + dataplatform_near_components_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_logs_bool_exp + ): [dataplatform_near_components_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.sys_logs" + """ + dataplatform_near_components_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_logs_bool_exp + ): dataplatform_near_components_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.sys_logs" using primary key columns + """ + dataplatform_near_components_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_components_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_components.sys_logs" + """ + dataplatform_near_components_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_components_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_components_sys_logs_bool_exp + ): [dataplatform_near_components_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_components.sys_metadata" + """ + dataplatform_near_components_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_metadata_bool_exp + ): [dataplatform_near_components_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.sys_metadata" + """ + dataplatform_near_components_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_sys_metadata_bool_exp + ): dataplatform_near_components_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.sys_metadata" using primary key columns + """ + dataplatform_near_components_sys_metadata_by_pk(attribute: String!): dataplatform_near_components_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_components.sys_metadata" + """ + dataplatform_near_components_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_components_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_components_sys_metadata_bool_exp + ): [dataplatform_near_components_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_components.versions" + """ + dataplatform_near_components_versions( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_versions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_versions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_versions_bool_exp + ): [dataplatform_near_components_versions!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_components.versions" + """ + dataplatform_near_components_versions_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_components_versions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_components_versions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_components_versions_bool_exp + ): dataplatform_near_components_versions_aggregate! + + """ + fetch data from the table: "dataplatform_near_components.versions" using primary key columns + """ + dataplatform_near_components_versions_by_pk(id: Int!): dataplatform_near_components_versions + + """ + fetch data from the table in a streaming manner: "dataplatform_near_components.versions" + """ + dataplatform_near_components_versions_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_components_versions_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_components_versions_bool_exp + ): [dataplatform_near_components_versions!]! + + """ + fetch data from the table: "dataplatform_near_entities.entities" + """ + dataplatform_near_entities_entities( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_entities_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_entities_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_entities_bool_exp + ): [dataplatform_near_entities_entities!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.entities" + """ + dataplatform_near_entities_entities_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_entities_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_entities_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_entities_bool_exp + ): dataplatform_near_entities_entities_aggregate! + + """ + fetch data from the table: "dataplatform_near_entities.entities" using primary key columns + """ + dataplatform_near_entities_entities_by_pk(account_id: String!, entity_type: String!, name: String!): dataplatform_near_entities_entities + + """ + fetch data from the table in a streaming manner: "dataplatform_near_entities.entities" + """ + dataplatform_near_entities_entities_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_entities_entities_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_entities_entities_bool_exp + ): [dataplatform_near_entities_entities!]! + + """ + fetch data from the table: "dataplatform_near_entities.sys_logs" + """ + dataplatform_near_entities_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_logs_bool_exp + ): [dataplatform_near_entities_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.sys_logs" + """ + dataplatform_near_entities_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_logs_bool_exp + ): dataplatform_near_entities_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_entities.sys_logs" using primary key columns + """ + dataplatform_near_entities_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_entities_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_entities.sys_logs" + """ + dataplatform_near_entities_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_entities_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_entities_sys_logs_bool_exp + ): [dataplatform_near_entities_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_entities.sys_metadata" + """ + dataplatform_near_entities_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_metadata_bool_exp + ): [dataplatform_near_entities_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.sys_metadata" + """ + dataplatform_near_entities_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_sys_metadata_bool_exp + ): dataplatform_near_entities_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_entities.sys_metadata" using primary key columns + """ + dataplatform_near_entities_sys_metadata_by_pk(attribute: String!): dataplatform_near_entities_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_entities.sys_metadata" + """ + dataplatform_near_entities_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_entities_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_entities_sys_metadata_bool_exp + ): [dataplatform_near_entities_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_entities.tags" + """ + dataplatform_near_entities_tags( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_tags_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_tags_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_tags_bool_exp + ): [dataplatform_near_entities_tags!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_entities.tags" + """ + dataplatform_near_entities_tags_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_entities_tags_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_entities_tags_order_by!] + + """filter the rows returned""" + where: dataplatform_near_entities_tags_bool_exp + ): dataplatform_near_entities_tags_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_entities.tags" + """ + dataplatform_near_entities_tags_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_entities_tags_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_entities_tags_bool_exp + ): [dataplatform_near_entities_tags!]! + + """ + fetch data from the table: "dataplatform_near_feed.moderated_comments" + """ + dataplatform_near_feed_moderated_comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): [dataplatform_near_feed_moderated_comments!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.moderated_comments" + """ + dataplatform_near_feed_moderated_comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): dataplatform_near_feed_moderated_comments_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_feed.moderated_comments" + """ + dataplatform_near_feed_moderated_comments_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_feed_moderated_comments_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_comments_bool_exp + ): [dataplatform_near_feed_moderated_comments!]! + + """ + fetch data from the table: "dataplatform_near_feed.moderated_posts" + """ + dataplatform_near_feed_moderated_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_bool_exp + ): [dataplatform_near_feed_moderated_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.moderated_posts" + """ + dataplatform_near_feed_moderated_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_bool_exp + ): dataplatform_near_feed_moderated_posts_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_feed.moderated_posts" + """ + dataplatform_near_feed_moderated_posts_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_feed_moderated_posts_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_bool_exp + ): [dataplatform_near_feed_moderated_posts!]! + + """ + fetch data from the table: "dataplatform_near_feed.moderated_posts_with_reposts_feed" + """ + dataplatform_near_feed_moderated_posts_with_reposts_feed( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_with_reposts_feed_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_with_reposts_feed_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp + ): [dataplatform_near_feed_moderated_posts_with_reposts_feed!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.moderated_posts_with_reposts_feed" + """ + dataplatform_near_feed_moderated_posts_with_reposts_feed_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_moderated_posts_with_reposts_feed_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_moderated_posts_with_reposts_feed_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp + ): dataplatform_near_feed_moderated_posts_with_reposts_feed_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_feed.moderated_posts_with_reposts_feed" + """ + dataplatform_near_feed_moderated_posts_with_reposts_feed_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_feed_moderated_posts_with_reposts_feed_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_feed_moderated_posts_with_reposts_feed_bool_exp + ): [dataplatform_near_feed_moderated_posts_with_reposts_feed!]! + + """ + fetch data from the table: "dataplatform_near_feed.promoted_blog_posts" + """ + dataplatform_near_feed_promoted_blog_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_promoted_blog_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_promoted_blog_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_promoted_blog_posts_bool_exp + ): [dataplatform_near_feed_promoted_blog_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.promoted_blog_posts" + """ + dataplatform_near_feed_promoted_blog_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_promoted_blog_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_promoted_blog_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_promoted_blog_posts_bool_exp + ): dataplatform_near_feed_promoted_blog_posts_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_feed.promoted_blog_posts" + """ + dataplatform_near_feed_promoted_blog_posts_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_feed_promoted_blog_posts_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_feed_promoted_blog_posts_bool_exp + ): [dataplatform_near_feed_promoted_blog_posts!]! + + """ + fetch data from the table: "dataplatform_near_feed.sys_logs" + """ + dataplatform_near_feed_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_logs_bool_exp + ): [dataplatform_near_feed_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.sys_logs" + """ + dataplatform_near_feed_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_logs_bool_exp + ): dataplatform_near_feed_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.sys_logs" using primary key columns + """ + dataplatform_near_feed_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_feed_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_feed.sys_logs" + """ + dataplatform_near_feed_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_feed_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_feed_sys_logs_bool_exp + ): [dataplatform_near_feed_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_feed.sys_metadata" + """ + dataplatform_near_feed_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_metadata_bool_exp + ): [dataplatform_near_feed_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_feed.sys_metadata" + """ + dataplatform_near_feed_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_feed_sys_metadata_bool_exp + ): dataplatform_near_feed_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_feed.sys_metadata" using primary key columns + """ + dataplatform_near_feed_sys_metadata_by_pk(attribute: String!): dataplatform_near_feed_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_feed.sys_metadata" + """ + dataplatform_near_feed_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_feed_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_feed_sys_metadata_bool_exp + ): [dataplatform_near_feed_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_moderation.moderation_decisions" + """ + dataplatform_near_moderation_moderation_decisions( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_decisions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_decisions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_decisions_bool_exp + ): [dataplatform_near_moderation_moderation_decisions!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.moderation_decisions" + """ + dataplatform_near_moderation_moderation_decisions_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_decisions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_decisions_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_decisions_bool_exp + ): dataplatform_near_moderation_moderation_decisions_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_moderation.moderation_decisions" + """ + dataplatform_near_moderation_moderation_decisions_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_moderation_moderation_decisions_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_decisions_bool_exp + ): [dataplatform_near_moderation_moderation_decisions!]! + + """ + fetch data from the table: "dataplatform_near_moderation.moderation_reporting" + """ + dataplatform_near_moderation_moderation_reporting( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_reporting_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_reporting_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_reporting_bool_exp + ): [dataplatform_near_moderation_moderation_reporting!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.moderation_reporting" + """ + dataplatform_near_moderation_moderation_reporting_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_moderation_reporting_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_moderation_reporting_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_reporting_bool_exp + ): dataplatform_near_moderation_moderation_reporting_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_moderation.moderation_reporting" + """ + dataplatform_near_moderation_moderation_reporting_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_moderation_moderation_reporting_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_moderation_moderation_reporting_bool_exp + ): [dataplatform_near_moderation_moderation_reporting!]! + + """ + fetch data from the table: "dataplatform_near_moderation.needs_moderation" + """ + dataplatform_near_moderation_needs_moderation( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_needs_moderation_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_needs_moderation_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_needs_moderation_bool_exp + ): [dataplatform_near_moderation_needs_moderation!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.needs_moderation" + """ + dataplatform_near_moderation_needs_moderation_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_needs_moderation_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_needs_moderation_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_needs_moderation_bool_exp + ): dataplatform_near_moderation_needs_moderation_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_moderation.needs_moderation" + """ + dataplatform_near_moderation_needs_moderation_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_moderation_needs_moderation_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_moderation_needs_moderation_bool_exp + ): [dataplatform_near_moderation_needs_moderation!]! + + """ + fetch data from the table: "dataplatform_near_moderation.sys_logs" + """ + dataplatform_near_moderation_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_logs_bool_exp + ): [dataplatform_near_moderation_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.sys_logs" + """ + dataplatform_near_moderation_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_logs_bool_exp + ): dataplatform_near_moderation_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_moderation.sys_logs" using primary key columns + """ + dataplatform_near_moderation_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_moderation_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_moderation.sys_logs" + """ + dataplatform_near_moderation_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_moderation_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_logs_bool_exp + ): [dataplatform_near_moderation_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_moderation.sys_metadata" + """ + dataplatform_near_moderation_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_metadata_bool_exp + ): [dataplatform_near_moderation_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.sys_metadata" + """ + dataplatform_near_moderation_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_metadata_bool_exp + ): dataplatform_near_moderation_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_moderation.sys_metadata" using primary key columns + """ + dataplatform_near_moderation_sys_metadata_by_pk(attribute: String!): dataplatform_near_moderation_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_moderation.sys_metadata" + """ + dataplatform_near_moderation_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_moderation_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_moderation_sys_metadata_bool_exp + ): [dataplatform_near_moderation_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_moderation.unmoderated_reports" + """ + dataplatform_near_moderation_unmoderated_reports( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_unmoderated_reports_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_unmoderated_reports_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_unmoderated_reports_bool_exp + ): [dataplatform_near_moderation_unmoderated_reports!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_moderation.unmoderated_reports" + """ + dataplatform_near_moderation_unmoderated_reports_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_moderation_unmoderated_reports_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_moderation_unmoderated_reports_order_by!] + + """filter the rows returned""" + where: dataplatform_near_moderation_unmoderated_reports_bool_exp + ): dataplatform_near_moderation_unmoderated_reports_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_moderation.unmoderated_reports" + """ + dataplatform_near_moderation_unmoderated_reports_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_moderation_unmoderated_reports_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_moderation_unmoderated_reports_bool_exp + ): [dataplatform_near_moderation_unmoderated_reports!]! + + """ + fetch data from the table: "dataplatform_near_notifications.notifications" + """ + dataplatform_near_notifications_notifications( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_notifications_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_notifications_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_notifications_bool_exp + ): [dataplatform_near_notifications_notifications!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_notifications.notifications" + """ + dataplatform_near_notifications_notifications_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_notifications_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_notifications_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_notifications_bool_exp + ): dataplatform_near_notifications_notifications_aggregate! + + """ + fetch data from the table: "dataplatform_near_notifications.notifications" using primary key columns + """ + dataplatform_near_notifications_notifications_by_pk(id: Int!): dataplatform_near_notifications_notifications + + """ + fetch data from the table in a streaming manner: "dataplatform_near_notifications.notifications" + """ + dataplatform_near_notifications_notifications_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_notifications_notifications_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_notifications_notifications_bool_exp + ): [dataplatform_near_notifications_notifications!]! + + """ + fetch data from the table: "dataplatform_near_notifications.sys_logs" + """ + dataplatform_near_notifications_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_logs_bool_exp + ): [dataplatform_near_notifications_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_notifications.sys_logs" + """ + dataplatform_near_notifications_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_logs_bool_exp + ): dataplatform_near_notifications_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_notifications.sys_logs" using primary key columns + """ + dataplatform_near_notifications_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_notifications_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_notifications.sys_logs" + """ + dataplatform_near_notifications_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_notifications_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_logs_bool_exp + ): [dataplatform_near_notifications_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_notifications.sys_metadata" + """ + dataplatform_near_notifications_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_metadata_bool_exp + ): [dataplatform_near_notifications_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_notifications.sys_metadata" + """ + dataplatform_near_notifications_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_notifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_notifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_metadata_bool_exp + ): dataplatform_near_notifications_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_notifications.sys_metadata" using primary key columns + """ + dataplatform_near_notifications_sys_metadata_by_pk(attribute: String!): dataplatform_near_notifications_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_notifications.sys_metadata" + """ + dataplatform_near_notifications_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_notifications_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_notifications_sys_metadata_bool_exp + ): [dataplatform_near_notifications_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.bitmaps" + """ + dataplatform_near_receiver_blocks_bitmaps( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_bitmaps_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_bitmaps_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_bitmaps_bool_exp + ): [dataplatform_near_receiver_blocks_bitmaps!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.bitmaps" + """ + dataplatform_near_receiver_blocks_bitmaps_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_bitmaps_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_bitmaps_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_bitmaps_bool_exp + ): dataplatform_near_receiver_blocks_bitmaps_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.bitmaps" using primary key columns + """ + dataplatform_near_receiver_blocks_bitmaps_by_pk(block_date: date!, receiver_id: bigint!): dataplatform_near_receiver_blocks_bitmaps + + """ + fetch data from the table in a streaming manner: "dataplatform_near_receiver_blocks.bitmaps" + """ + dataplatform_near_receiver_blocks_bitmaps_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_receiver_blocks_bitmaps_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_bitmaps_bool_exp + ): [dataplatform_near_receiver_blocks_bitmaps!]! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.receivers" + """ + dataplatform_near_receiver_blocks_receivers( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_receivers_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_receivers_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_receivers_bool_exp + ): [dataplatform_near_receiver_blocks_receivers!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.receivers" + """ + dataplatform_near_receiver_blocks_receivers_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_receivers_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_receivers_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_receivers_bool_exp + ): dataplatform_near_receiver_blocks_receivers_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.receivers" using primary key columns + """ + dataplatform_near_receiver_blocks_receivers_by_pk(id: bigint!): dataplatform_near_receiver_blocks_receivers + + """ + fetch data from the table in a streaming manner: "dataplatform_near_receiver_blocks.receivers" + """ + dataplatform_near_receiver_blocks_receivers_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_receiver_blocks_receivers_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_receivers_bool_exp + ): [dataplatform_near_receiver_blocks_receivers!]! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_logs" + """ + dataplatform_near_receiver_blocks_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_logs_bool_exp + ): [dataplatform_near_receiver_blocks_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.sys_logs" + """ + dataplatform_near_receiver_blocks_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_logs_bool_exp + ): dataplatform_near_receiver_blocks_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_logs" using primary key columns + """ + dataplatform_near_receiver_blocks_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_receiver_blocks_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_receiver_blocks.sys_logs" + """ + dataplatform_near_receiver_blocks_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_receiver_blocks_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_logs_bool_exp + ): [dataplatform_near_receiver_blocks_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_metadata" + """ + dataplatform_near_receiver_blocks_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_metadata_bool_exp + ): [dataplatform_near_receiver_blocks_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_receiver_blocks.sys_metadata" + """ + dataplatform_near_receiver_blocks_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_receiver_blocks_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_receiver_blocks_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_metadata_bool_exp + ): dataplatform_near_receiver_blocks_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_receiver_blocks.sys_metadata" using primary key columns + """ + dataplatform_near_receiver_blocks_sys_metadata_by_pk(attribute: String!): dataplatform_near_receiver_blocks_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_receiver_blocks.sys_metadata" + """ + dataplatform_near_receiver_blocks_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_receiver_blocks_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_receiver_blocks_sys_metadata_bool_exp + ): [dataplatform_near_receiver_blocks_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.comments" + """ + dataplatform_near_social_feed_comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_comments_bool_exp + ): [dataplatform_near_social_feed_comments!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.comments" + """ + dataplatform_near_social_feed_comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_comments_bool_exp + ): dataplatform_near_social_feed_comments_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.comments" using primary key columns + """ + dataplatform_near_social_feed_comments_by_pk(id: Int!): dataplatform_near_social_feed_comments + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.comments" + """ + dataplatform_near_social_feed_comments_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_comments_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_comments_bool_exp + ): [dataplatform_near_social_feed_comments!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.moderated_comments" + """ + dataplatform_near_social_feed_moderated_comments( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_comments_bool_exp + ): [dataplatform_near_social_feed_moderated_comments!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.moderated_comments" + """ + dataplatform_near_social_feed_moderated_comments_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_comments_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_comments_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_comments_bool_exp + ): dataplatform_near_social_feed_moderated_comments_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.moderated_comments" + """ + dataplatform_near_social_feed_moderated_comments_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_moderated_comments_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_comments_bool_exp + ): [dataplatform_near_social_feed_moderated_comments!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.moderated_posts" + """ + dataplatform_near_social_feed_moderated_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_posts_bool_exp + ): [dataplatform_near_social_feed_moderated_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.moderated_posts" + """ + dataplatform_near_social_feed_moderated_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_moderated_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_moderated_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_posts_bool_exp + ): dataplatform_near_social_feed_moderated_posts_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.moderated_posts" + """ + dataplatform_near_social_feed_moderated_posts_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_moderated_posts_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_moderated_posts_bool_exp + ): [dataplatform_near_social_feed_moderated_posts!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.post_likes" + """ + dataplatform_near_social_feed_post_likes( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): [dataplatform_near_social_feed_post_likes!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.post_likes" + """ + dataplatform_near_social_feed_post_likes_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_post_likes_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_post_likes_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): dataplatform_near_social_feed_post_likes_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.post_likes" using primary key columns + """ + dataplatform_near_social_feed_post_likes_by_pk(account_id: String!, post_id: Int!): dataplatform_near_social_feed_post_likes + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.post_likes" + """ + dataplatform_near_social_feed_post_likes_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_post_likes_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_post_likes_bool_exp + ): [dataplatform_near_social_feed_post_likes!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.posts" + """ + dataplatform_near_social_feed_posts( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_posts_bool_exp + ): [dataplatform_near_social_feed_posts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.posts" + """ + dataplatform_near_social_feed_posts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_posts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_posts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_posts_bool_exp + ): dataplatform_near_social_feed_posts_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.posts" using primary key columns + """ + dataplatform_near_social_feed_posts_by_pk(id: Int!): dataplatform_near_social_feed_posts + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.posts" + """ + dataplatform_near_social_feed_posts_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_posts_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_posts_bool_exp + ): [dataplatform_near_social_feed_posts!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.promote" + """ + dataplatform_near_social_feed_promote( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_promote_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_promote_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_promote_bool_exp + ): [dataplatform_near_social_feed_promote!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.promote" + """ + dataplatform_near_social_feed_promote_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_promote_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_promote_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_promote_bool_exp + ): dataplatform_near_social_feed_promote_aggregate! + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.promote" + """ + dataplatform_near_social_feed_promote_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_promote_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_promote_bool_exp + ): [dataplatform_near_social_feed_promote!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.reposts" + """ + dataplatform_near_social_feed_reposts( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_reposts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_reposts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_reposts_bool_exp + ): [dataplatform_near_social_feed_reposts!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.reposts" + """ + dataplatform_near_social_feed_reposts_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_reposts_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_reposts_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_reposts_bool_exp + ): dataplatform_near_social_feed_reposts_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.reposts" using primary key columns + """ + dataplatform_near_social_feed_reposts_by_pk(account_id: String!, post_id: Int!): dataplatform_near_social_feed_reposts + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.reposts" + """ + dataplatform_near_social_feed_reposts_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_reposts_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_reposts_bool_exp + ): [dataplatform_near_social_feed_reposts!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_logs" + """ + dataplatform_near_social_feed_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_logs_bool_exp + ): [dataplatform_near_social_feed_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.sys_logs" + """ + dataplatform_near_social_feed_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_logs_bool_exp + ): dataplatform_near_social_feed_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_logs" using primary key columns + """ + dataplatform_near_social_feed_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_social_feed_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.sys_logs" + """ + dataplatform_near_social_feed_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_logs_bool_exp + ): [dataplatform_near_social_feed_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_metadata" + """ + dataplatform_near_social_feed_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_metadata_bool_exp + ): [dataplatform_near_social_feed_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_social_feed.sys_metadata" + """ + dataplatform_near_social_feed_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_social_feed_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_social_feed_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_metadata_bool_exp + ): dataplatform_near_social_feed_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_social_feed.sys_metadata" using primary key columns + """ + dataplatform_near_social_feed_sys_metadata_by_pk(attribute: String!): dataplatform_near_social_feed_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_social_feed.sys_metadata" + """ + dataplatform_near_social_feed_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_social_feed_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_social_feed_sys_metadata_bool_exp + ): [dataplatform_near_social_feed_sys_metadata!]! + + """ + fetch data from the table: "dataplatform_near_verifications.account" + """ + dataplatform_near_verifications_account( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_account_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_account_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_account_bool_exp + ): [dataplatform_near_verifications_account!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_verifications.account" + """ + dataplatform_near_verifications_account_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_account_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_account_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_account_bool_exp + ): dataplatform_near_verifications_account_aggregate! + + """ + fetch data from the table: "dataplatform_near_verifications.account" using primary key columns + """ + dataplatform_near_verifications_account_by_pk(account_id: String!): dataplatform_near_verifications_account + + """ + fetch data from the table in a streaming manner: "dataplatform_near_verifications.account" + """ + dataplatform_near_verifications_account_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_verifications_account_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_verifications_account_bool_exp + ): [dataplatform_near_verifications_account!]! + + """ + fetch data from the table: "dataplatform_near_verifications.sys_logs" + """ + dataplatform_near_verifications_sys_logs( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_logs_bool_exp + ): [dataplatform_near_verifications_sys_logs!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_verifications.sys_logs" + """ + dataplatform_near_verifications_sys_logs_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_logs_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_logs_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_logs_bool_exp + ): dataplatform_near_verifications_sys_logs_aggregate! + + """ + fetch data from the table: "dataplatform_near_verifications.sys_logs" using primary key columns + """ + dataplatform_near_verifications_sys_logs_by_pk(date: date!, id: bigint!): dataplatform_near_verifications_sys_logs + + """ + fetch data from the table in a streaming manner: "dataplatform_near_verifications.sys_logs" + """ + dataplatform_near_verifications_sys_logs_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_verifications_sys_logs_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_logs_bool_exp + ): [dataplatform_near_verifications_sys_logs!]! + + """ + fetch data from the table: "dataplatform_near_verifications.sys_metadata" + """ + dataplatform_near_verifications_sys_metadata( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_metadata_bool_exp + ): [dataplatform_near_verifications_sys_metadata!]! + + """ + fetch aggregated fields from the table: "dataplatform_near_verifications.sys_metadata" + """ + dataplatform_near_verifications_sys_metadata_aggregate( + """distinct select on columns""" + distinct_on: [dataplatform_near_verifications_sys_metadata_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [dataplatform_near_verifications_sys_metadata_order_by!] + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_metadata_bool_exp + ): dataplatform_near_verifications_sys_metadata_aggregate! + + """ + fetch data from the table: "dataplatform_near_verifications.sys_metadata" using primary key columns + """ + dataplatform_near_verifications_sys_metadata_by_pk(attribute: String!): dataplatform_near_verifications_sys_metadata + + """ + fetch data from the table in a streaming manner: "dataplatform_near_verifications.sys_metadata" + """ + dataplatform_near_verifications_sys_metadata_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [dataplatform_near_verifications_sys_metadata_stream_cursor_input]! + + """filter the rows returned""" + where: dataplatform_near_verifications_sys_metadata_bool_exp + ): [dataplatform_near_verifications_sys_metadata!]! + + """ + fetch data from the table: "impressions" + """ + impressions( + """distinct select on columns""" + distinct_on: [impressions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [impressions_order_by!] + + """filter the rows returned""" + where: impressions_bool_exp + ): [impressions!]! + + """ + fetch aggregated fields from the table: "impressions" + """ + impressions_aggregate( + """distinct select on columns""" + distinct_on: [impressions_select_column!] + + """limit the number of rows returned""" + limit: Int + + """skip the first n rows. Use only with order_by""" + offset: Int + + """sort the rows by one or more columns""" + order_by: [impressions_order_by!] + + """filter the rows returned""" + where: impressions_bool_exp + ): impressions_aggregate! + + """ + fetch data from the table in a streaming manner: "impressions" + """ + impressions_stream( + """maximum number of rows returned in a single batch""" + batch_size: Int! + + """cursor to stream the results returned by the query""" + cursor: [impressions_stream_cursor_input]! + + """filter the rows returned""" + where: impressions_bool_exp + ): [impressions!]! +} + +scalar timestamp + +""" +Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. +""" +input timestamp_comparison_exp { + _eq: timestamp + _gt: timestamp + _gte: timestamp + _in: [timestamp!] + _is_null: Boolean + _lt: timestamp + _lte: timestamp + _neq: timestamp + _nin: [timestamp!] +} + +scalar timestamptz + +""" +Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. +""" +input timestamptz_comparison_exp { + _eq: timestamptz + _gt: timestamptz + _gte: timestamptz + _in: [timestamptz!] + _is_null: Boolean + _lt: timestamptz + _lte: timestamptz + _neq: timestamptz + _nin: [timestamptz!] +} + diff --git a/block-streamer/src/block_stream.rs b/block-streamer/src/block_stream.rs index 6698881a9..e52f8d237 100644 --- a/block-streamer/src/block_stream.rs +++ b/block-streamer/src/block_stream.rs @@ -1,21 +1,25 @@ use std::future::Future; use std::pin::Pin; +use std::sync::Arc; use std::task::Poll; use anyhow::Context; +use futures::StreamExt; use near_lake_framework::near_indexer_primitives; +use registry_types::Rule; use tokio::task::JoinHandle; use crate::indexer_config::IndexerConfig; +use crate::lake_s3_client::SharedLakeS3Client; use crate::metrics; +use crate::receiver_blocks::ReceiverBlocksProcessor; +use crate::redis::RedisClient; use crate::rules::types::ChainId; -use registry_types::Rule; /// The number of blocks to prefetch within `near-lake-framework`. The internal default is 100, but /// we need this configurable for testing purposes. const LAKE_PREFETCH_SIZE: usize = 100; const MAX_STREAM_SIZE_WITH_CACHE: u64 = 100; -const DELTA_LAKE_SKIP_ACCOUNTS: [&str; 4] = ["*", "*.near", "*.kaiching", "*.tg"]; const MAX_STREAM_SIZE: u64 = 100; #[pin_project::pin_project] @@ -79,9 +83,9 @@ impl BlockStream { pub fn start( &mut self, start_block_height: near_indexer_primitives::types::BlockHeight, - redis: std::sync::Arc, - delta_lake_client: std::sync::Arc, - lake_s3_client: crate::lake_s3_client::SharedLakeS3Client, + redis: Arc, + reciever_blocks_processor: Arc, + lake_s3_client: SharedLakeS3Client, ) -> anyhow::Result<()> { if self.task.is_some() { return Err(anyhow::anyhow!("BlockStreamer has already been started",)); @@ -100,7 +104,7 @@ impl BlockStream { start_block_height, &indexer_config, redis, - delta_lake_client, + reciever_blocks_processor, lake_s3_client, &chain_id, LAKE_PREFETCH_SIZE, @@ -174,9 +178,9 @@ impl BlockStream { pub(crate) async fn start_block_stream( start_block_height: near_indexer_primitives::types::BlockHeight, indexer: &IndexerConfig, - redis: std::sync::Arc, - delta_lake_client: std::sync::Arc, - lake_s3_client: crate::lake_s3_client::SharedLakeS3Client, + redis: Arc, + reciever_blocks_processor: Arc, + lake_s3_client: SharedLakeS3Client, chain_id: &ChainId, lake_prefetch_size: usize, redis_stream: String, @@ -187,18 +191,18 @@ pub(crate) async fn start_block_stream( .with_label_values(&[&indexer.get_full_name()]) .reset(); - let last_indexed_delta_lake_block = process_delta_lake_blocks( + let last_bitmap_indexer_block = process_bitmap_indexer_blocks( start_block_height, - delta_lake_client, + reciever_blocks_processor, redis.clone(), indexer, redis_stream.clone(), ) .await - .context("Failed during Delta Lake processing")?; + .context("Failed while fetching and streaming bitmap indexer blocks")?; let last_indexed_near_lake_block = process_near_lake_blocks( - last_indexed_delta_lake_block, + last_bitmap_indexer_block, lake_s3_client, lake_prefetch_size, redis, @@ -217,88 +221,73 @@ pub(crate) async fn start_block_stream( Ok(()) } -async fn process_delta_lake_blocks( +async fn process_bitmap_indexer_blocks( start_block_height: near_indexer_primitives::types::BlockHeight, - delta_lake_client: std::sync::Arc, - redis: std::sync::Arc, + reciever_blocks_processor: Arc, + redis: Arc, indexer: &IndexerConfig, redis_stream: String, ) -> anyhow::Result { - let latest_block_metadata = delta_lake_client.get_latest_block_metadata().await?; - let last_indexed_block_from_metadata = latest_block_metadata - .last_indexed_block - .parse::() - .context("Failed to parse Delta Lake metadata")?; - - if start_block_height >= last_indexed_block_from_metadata { - return Ok(start_block_height); - } - - let blocks_from_index = match &indexer.rule { + let contract_pattern: String = match &indexer.rule { Rule::ActionAny { affected_account_id, .. - } => { - if affected_account_id - .split(',') - .any(|account_id| DELTA_LAKE_SKIP_ACCOUNTS.contains(&account_id.trim())) - { - tracing::debug!( - "Skipping fetching index files from delta lake due to wildcard contract filter present in {}", - affected_account_id - ); - return Ok(start_block_height); - } - tracing::debug!( - "Fetching block heights starting from {} from delta lake", - start_block_height, - ); - - delta_lake_client - .list_matching_block_heights(start_block_height, affected_account_id) - .await - } + } => affected_account_id.to_owned(), Rule::ActionFunctionCall { .. } => { - tracing::error!("ActionFunctionCall matching rule not yet supported for delta lake processing, function: {:?} {:?}", indexer.account_id, indexer.function_name); - Ok(vec![]) + tracing::error!("ActionFunctionCall matching rule not yet supported for bitmap processing, function"); + return Ok(start_block_height); } Rule::Event { .. } => { - tracing::error!("Event matching rule not yet supported for delta lake processing, function {:?} {:?}", indexer.account_id, indexer.function_name); - Ok(vec![]) + tracing::error!( + "Event matching rule not yet supported for bitmap processing, function" + ); + return Ok(start_block_height); } - }?; + }; tracing::debug!( - "Flushing {} block heights from index files to Redis Stream", - blocks_from_index.len(), + "Fetching block heights starting from {} from Bitmap Indexer", + start_block_height, ); - for block_height in &blocks_from_index { - let block_height = block_height.to_owned(); + if contract_pattern + .split(',') + .any(|account_id| account_id.trim().eq("*")) + { + tracing::debug!( + "Skipping fetching block heights form bitmap idnexer due to presence of all account wildcard * in filter {}", + contract_pattern + ); + + return Ok(start_block_height); + } + + let matching_block_heights = reciever_blocks_processor + .stream_matching_block_heights(start_block_height, contract_pattern); + + tokio::pin!(matching_block_heights); + + let mut last_published_block_height: u64 = start_block_height; + + while let Some(Ok(block_height)) = matching_block_heights.next().await { redis .publish_block(indexer, redis_stream.clone(), block_height, MAX_STREAM_SIZE) .await?; redis .set_last_processed_block(indexer, block_height) .await?; - } - let last_indexed_block = - blocks_from_index - .last() - .map_or(last_indexed_block_from_metadata, |&last_block_in_index| { - // Check for the case where index files are written right after we fetch the last_indexed_block metadata - std::cmp::max(last_block_in_index, last_indexed_block_from_metadata) - }); + last_published_block_height = block_height; + } - Ok(last_indexed_block) + Ok(last_published_block_height) } async fn process_near_lake_blocks( start_block_height: near_indexer_primitives::types::BlockHeight, - lake_s3_client: crate::lake_s3_client::SharedLakeS3Client, + lake_s3_client: SharedLakeS3Client, lake_prefetch_size: usize, - redis: std::sync::Arc, + redis: Arc, indexer: &IndexerConfig, redis_stream: String, chain_id: &ChainId, @@ -355,16 +344,16 @@ async fn process_near_lake_blocks( mod tests { use super::*; - use std::sync::Arc; - use mockall::predicate; use near_lake_framework::s3_client::GetObjectBytesError; + use std::sync::Arc; // FIX: near lake framework now infinitely retires - we need a way to stop it to allow the test // to finish #[ignore] #[tokio::test] - async fn adds_matching_blocks_from_index_and_lake() { + async fn adds_matching_blocks_from_bitmap_and_lake() { + let contract_filter = "queryapi.dataplatform.near"; let mut mock_lake_s3_client = crate::lake_s3_client::SharedLakeS3Client::default(); mock_lake_s3_client @@ -377,24 +366,47 @@ mod tests { mock_lake_s3_client .expect_list_common_prefixes() - .with(predicate::always(), predicate::eq(107503704.to_string())) .returning(|_, _| Ok(vec![107503704.to_string(), 107503705.to_string()])); - let mut mock_delta_lake_client = crate::delta_lake_client::DeltaLakeClient::default(); - mock_delta_lake_client - .expect_get_latest_block_metadata() - .returning(|| { - Ok(crate::delta_lake_client::LatestBlockMetadata { - last_indexed_block: "107503703".to_string(), - processed_at_utc: "".to_string(), - first_indexed_block: "".to_string(), - last_indexed_block_date: "".to_string(), - first_indexed_block_date: "".to_string(), - }) + let mut mock_s3_client = crate::s3_client::S3Client::default(); + + mock_s3_client + .expect_get_text_file() + .with( + predicate::eq("near-lake-data-mainnet".to_string()), + predicate::eq("000091940840/block.json"), + ) + .returning(move |_, _| { + Ok(crate::test_utils::generate_block_with_timestamp( + "2023-12-09", + )) }); - mock_delta_lake_client - .expect_list_matching_block_heights() - .returning(|_, _| Ok(vec![107503702, 107503703])); + + let mut mock_graphql_client = crate::graphql::client::GraphQLClient::default(); + + mock_graphql_client + .expect_get_bitmaps_exact() + .with( + predicate::eq(vec![contract_filter.to_owned()]), + predicate::eq(crate::test_utils::utc_date_time_from_date_string( + "2023-12-09", + )), + ) + .returning(|_, _| { + Ok(vec![ + crate::graphql::client::get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps { + first_block_height: 107503702, + bitmap: "oA==".to_string(), + } +]) + }); + + mock_graphql_client + .expect_get_bitmaps_exact() + .returning(|_, _| Ok(vec![])); + + let mock_reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); let mut mock_redis = crate::redis::RedisClient::default(); mock_redis @@ -431,7 +443,7 @@ mod tests { .unwrap(), function_name: "test".to_string(), rule: registry_types::Rule::ActionAny { - affected_account_id: "queryapi.dataplatform.near".to_string(), + affected_account_id: contract_filter.to_owned(), status: registry_types::Status::Success, }, }; @@ -440,7 +452,7 @@ mod tests { 91940840, &indexer_config, std::sync::Arc::new(mock_redis), - std::sync::Arc::new(mock_delta_lake_client), + std::sync::Arc::new(mock_reciever_blocks_processor), mock_lake_s3_client, &ChainId::Mainnet, 1, @@ -455,21 +467,43 @@ mod tests { #[ignore] #[tokio::test] async fn skips_caching_of_lake_block_over_stream_size_limit() { - let mock_lake_s3_client = crate::lake_s3_client::SharedLakeS3Client::default(); - - let mut mock_delta_lake_client = crate::delta_lake_client::DeltaLakeClient::default(); - mock_delta_lake_client - .expect_get_latest_block_metadata() - .returning(|| { - Ok(crate::delta_lake_client::LatestBlockMetadata { - last_indexed_block: "107503700".to_string(), - processed_at_utc: "".to_string(), - first_indexed_block: "".to_string(), - last_indexed_block_date: "".to_string(), - first_indexed_block_date: "".to_string(), - }) + let mut mock_lake_s3_client = crate::lake_s3_client::SharedLakeS3Client::default(); + + mock_lake_s3_client + .expect_get_object_bytes() + .returning(|_, prefix| { + let path = format!("{}/data/{}", env!("CARGO_MANIFEST_DIR"), prefix); + + std::fs::read(path).map_err(|e| GetObjectBytesError(Arc::new(e))) }); + mock_lake_s3_client + .expect_list_common_prefixes() + .returning(|_, _| Ok(vec![])); + + let mut mock_s3_client = crate::s3_client::S3Client::default(); + + mock_s3_client + .expect_get_text_file() + .with( + predicate::eq("near-lake-data-mainnet".to_string()), + predicate::eq("000107503704/block.json"), + ) + .returning(move |_, _| { + Ok(crate::test_utils::generate_block_with_timestamp( + &chrono::Utc::now().format("%Y-%m-%d").to_string(), + )) + }); + + let mut mock_graphql_client = crate::graphql::client::GraphQLClient::default(); + + mock_graphql_client + .expect_get_bitmaps_exact() + .returning(|_, _| Ok(vec![])); + + let mock_reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); + let mut mock_redis_client = crate::redis::RedisClient::default(); mock_redis_client .expect_publish_block() @@ -514,7 +548,7 @@ mod tests { 107503704, &indexer_config, std::sync::Arc::new(mock_redis_client), - std::sync::Arc::new(mock_delta_lake_client), + std::sync::Arc::new(mock_reciever_blocks_processor), mock_lake_s3_client, &ChainId::Mainnet, 1, @@ -525,22 +559,17 @@ mod tests { } #[tokio::test] - async fn skips_delta_lake_for_star_filter() { - let mut mock_delta_lake_client = crate::delta_lake_client::DeltaLakeClient::default(); - mock_delta_lake_client - .expect_get_latest_block_metadata() - .returning(|| { - Ok(crate::delta_lake_client::LatestBlockMetadata { - last_indexed_block: "107503700".to_string(), - processed_at_utc: "".to_string(), - first_indexed_block: "".to_string(), - last_indexed_block_date: "".to_string(), - first_indexed_block_date: "".to_string(), - }) - }); - mock_delta_lake_client - .expect_list_matching_block_heights() - .never(); + async fn skips_bitmap_for_star_filter() { + let mut mock_s3_client = crate::s3_client::S3Client::default(); + + mock_s3_client.expect_get_text_file().never(); + + let mut mock_graphql_client = crate::graphql::client::GraphQLClient::default(); + + mock_graphql_client.expect_get_bitmaps_exact().never(); + + let mock_reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); let mut mock_redis_client = crate::redis::RedisClient::default(); mock_redis_client.expect_publish_block().never(); @@ -558,9 +587,9 @@ mod tests { }, }; - process_delta_lake_blocks( + process_bitmap_indexer_blocks( 107503704, - std::sync::Arc::new(mock_delta_lake_client), + std::sync::Arc::new(mock_reciever_blocks_processor), std::sync::Arc::new(mock_redis_client), &indexer_config, "stream key".to_string(), @@ -570,22 +599,17 @@ mod tests { } #[tokio::test] - async fn skips_delta_lake_for_multiple_star_filter() { - let mut mock_delta_lake_client = crate::delta_lake_client::DeltaLakeClient::default(); - mock_delta_lake_client - .expect_get_latest_block_metadata() - .returning(|| { - Ok(crate::delta_lake_client::LatestBlockMetadata { - last_indexed_block: "107503700".to_string(), - processed_at_utc: "".to_string(), - first_indexed_block: "".to_string(), - last_indexed_block_date: "".to_string(), - first_indexed_block_date: "".to_string(), - }) - }); - mock_delta_lake_client - .expect_list_matching_block_heights() - .never(); + async fn skips_bitmap_for_multiple_star_filter() { + let mut mock_s3_client = crate::s3_client::S3Client::default(); + + mock_s3_client.expect_get_text_file().never(); + + let mut mock_graphql_client = crate::graphql::client::GraphQLClient::default(); + + mock_graphql_client.expect_get_bitmaps_exact().never(); + + let mock_reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); let mut mock_redis_client = crate::redis::RedisClient::default(); mock_redis_client.expect_publish_block().never(); @@ -598,14 +622,14 @@ mod tests { .unwrap(), function_name: "test".to_string(), rule: registry_types::Rule::ActionAny { - affected_account_id: "*, *.tg".to_string(), + affected_account_id: "*.tg, *".to_string(), status: registry_types::Status::Success, }, }; - process_delta_lake_blocks( + process_bitmap_indexer_blocks( 107503704, - std::sync::Arc::new(mock_delta_lake_client), + std::sync::Arc::new(mock_reciever_blocks_processor), std::sync::Arc::new(mock_redis_client), &indexer_config, "stream key".to_string(), @@ -615,22 +639,17 @@ mod tests { } #[tokio::test] - async fn skips_delta_lake_for_star_filter_after_normal_account() { - let mut mock_delta_lake_client = crate::delta_lake_client::DeltaLakeClient::default(); - mock_delta_lake_client - .expect_get_latest_block_metadata() - .returning(|| { - Ok(crate::delta_lake_client::LatestBlockMetadata { - last_indexed_block: "107503700".to_string(), - processed_at_utc: "".to_string(), - first_indexed_block: "".to_string(), - last_indexed_block_date: "".to_string(), - first_indexed_block_date: "".to_string(), - }) - }); - mock_delta_lake_client - .expect_list_matching_block_heights() - .never(); + async fn skips_bitmap_for_star_filter_after_normal_account() { + let mut mock_s3_client = crate::s3_client::S3Client::default(); + + mock_s3_client.expect_get_text_file().never(); + + let mut mock_graphql_client = crate::graphql::client::GraphQLClient::default(); + + mock_graphql_client.expect_get_bitmaps_exact().never(); + + let mock_reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); let mut mock_redis_client = crate::redis::RedisClient::default(); mock_redis_client.expect_publish_block().never(); @@ -643,14 +662,14 @@ mod tests { .unwrap(), function_name: "test".to_string(), rule: registry_types::Rule::ActionAny { - affected_account_id: "someone.near, *.kaiching".to_string(), + affected_account_id: "someone.tg, *".to_string(), status: registry_types::Status::Success, }, }; - process_delta_lake_blocks( + process_bitmap_indexer_blocks( 107503704, - std::sync::Arc::new(mock_delta_lake_client), + std::sync::Arc::new(mock_reciever_blocks_processor), std::sync::Arc::new(mock_redis_client), &indexer_config, "stream key".to_string(), diff --git a/block-streamer/src/delta_lake_client.rs b/block-streamer/src/delta_lake_client.rs deleted file mode 100644 index d45a7391c..000000000 --- a/block-streamer/src/delta_lake_client.rs +++ /dev/null @@ -1,754 +0,0 @@ -use anyhow::Context; -use chrono::TimeZone; -use futures::future::try_join_all; -use near_lake_framework::near_indexer_primitives; - -use crate::rules::types::ChainId; - -const DELTA_LAKE_BUCKET: &str = "near-delta-lake"; -const MAX_S3_RETRY_COUNT: u8 = 20; -const INDEXED_ACTIONS_PREFIX: &str = "silver/accounts/action_receipt_actions/metadata"; -const LATEST_BLOCK_METADATA_KEY: &str = - "silver/accounts/action_receipt_actions/metadata/latest_block.json"; - -#[cfg(not(test))] -pub use DeltaLakeClientImpl as DeltaLakeClient; -#[cfg(test)] -pub use MockDeltaLakeClientImpl as DeltaLakeClient; - -#[derive(serde::Deserialize, Debug, Eq, PartialEq)] -pub struct LatestBlockMetadata { - pub last_indexed_block: String, - pub first_indexed_block: String, - pub last_indexed_block_date: String, - pub first_indexed_block_date: String, - pub processed_at_utc: String, -} - -#[derive(serde::Deserialize, Debug, Eq, PartialEq)] -pub struct IndexFileAction { - pub action_kind: String, - pub block_heights: Vec, -} - -#[derive(serde::Deserialize, Debug, Eq, PartialEq)] -pub struct IndexFile { - pub heights: Vec, - pub actions: Vec, -} - -pub struct DeltaLakeClientImpl { - s3_client: crate::s3_client::S3Client, - chain_id: ChainId, -} - -#[cfg_attr(test, mockall::automock)] -impl DeltaLakeClientImpl { - pub fn new(s3_client: crate::s3_client::S3Client) -> Self { - Self { - s3_client, - // hardcode to mainnet for now - chain_id: ChainId::Mainnet, - } - } - - pub async fn get_latest_block_metadata(&self) -> anyhow::Result { - let metadata_file_content = self - .s3_client - .get_text_file(DELTA_LAKE_BUCKET, LATEST_BLOCK_METADATA_KEY) - .await?; - - serde_json::from_str::(&metadata_file_content) - .context("Unable to parse Metadata") - } - - fn get_lake_bucket(&self) -> String { - match self.chain_id { - ChainId::Mainnet => "near-lake-data-mainnet".to_string(), - ChainId::Testnet => "near-lake-data-testnet".to_string(), - } - } - - pub async fn get_nearest_block_date( - &self, - block_height: u64, - ) -> anyhow::Result> { - let mut current_block_height = block_height; - let mut retry_count = 1; - loop { - let block_key = format!("{:0>12}/block.json", current_block_height); - match self - .s3_client - .get_text_file(&self.get_lake_bucket(), &block_key) - .await - { - Ok(text) => { - let block: near_indexer_primitives::views::BlockView = - serde_json::from_str(&text)?; - return Ok(chrono::Utc.timestamp_nanos(block.header.timestamp_nanosec as i64)); - } - - Err(e) => { - if e.root_cause() - .downcast_ref::() - .is_some() - { - retry_count += 1; - if retry_count > MAX_S3_RETRY_COUNT { - anyhow::bail!("Exceeded maximum retries to fetch block from S3"); - } - - tracing::debug!( - "Block {} not found on S3, attempting to fetch next block", - current_block_height - ); - current_block_height += 1; - continue; - } - - return Err(e).context("Failed to fetch block from S3"); - } - } - } - } - - fn s3_prefix_from_contract_id(&self, contract_id: &str) -> String { - let mut folders = contract_id.split('.').collect::>(); - folders.reverse(); - - format!("{}/{}/", INDEXED_ACTIONS_PREFIX, folders.join("/")) - } - - async fn list_objects_recursive( - &self, - prefix: &str, - depth: u32, - ) -> anyhow::Result> { - if depth > 1 { - unimplemented!("Recursive list with depth > 1 not supported") - } - - let objects = self - .s3_client - .list_all_objects(DELTA_LAKE_BUCKET, prefix) - .await?; - - let mut results = vec![]; - // TODO do in parallel? - // TODO only list objects without .json extension - for object in objects { - results.extend( - self.s3_client - .list_all_objects(DELTA_LAKE_BUCKET, &object) - .await?, - ); - } - - Ok(results) - } - - async fn list_matching_index_files( - &self, - contract_pattern: &str, - ) -> anyhow::Result> { - match contract_pattern { - pattern if pattern.contains(',') => { - let contract_ids = pattern.split(','); - - let mut results = vec![]; - - for contract_id in contract_ids { - let contract_id = contract_id.trim(); - - if contract_id.contains('*') { - let pattern = contract_id.replace("*.", ""); - results.extend( - self.list_objects_recursive( - &self.s3_prefix_from_contract_id(&pattern), - 1, - ) - .await?, - ); - } else { - results.extend( - self.s3_client - .list_all_objects( - DELTA_LAKE_BUCKET, - &self.s3_prefix_from_contract_id(contract_id), - ) - .await?, - ); - }; - } - - Ok(results) - } - pattern if pattern.contains('*') => { - let contract_id = pattern.replace("*.", ""); - self.list_objects_recursive(&self.s3_prefix_from_contract_id(&contract_id), 1) - .await - } - pattern => { - self.s3_client - .list_all_objects(DELTA_LAKE_BUCKET, &self.s3_prefix_from_contract_id(pattern)) - .await - } - } - .context("Failed to list matching index files") - } - - fn date_from_s3_path(&self, path: &str) -> Option { - let file_name_date = path.split('/').last()?.replace(".json", ""); - - chrono::NaiveDate::parse_from_str(&file_name_date, "%Y-%m-%d").ok() - } - - pub async fn list_matching_block_heights( - &self, - start_block_height: near_indexer_primitives::types::BlockHeight, - contract_pattern: &str, - ) -> anyhow::Result> { - let start_date = self.get_nearest_block_date(start_block_height).await?; - - let file_list = self.list_matching_index_files(contract_pattern).await?; - tracing::debug!( - "Found {} index files matching {}", - file_list.len(), - contract_pattern, - ); - - let futures = file_list - .into_iter() - // TODO use `start_after` in the request to S3 to avoid this filter - .filter(|file_path| { - self.date_from_s3_path(file_path) - // Ignore invalid paths, i.e. sub-folders, by default - .map_or(false, |file_date| file_date >= start_date.date_naive()) - }) - .map(|key| async move { self.s3_client.get_text_file(DELTA_LAKE_BUCKET, &key).await }) - .collect::>(); - - tracing::debug!( - "Found {} index files matching {} after date {}", - futures.len(), - contract_pattern, - start_date - ); - - let file_content_list = try_join_all(futures).await?; - - let mut block_heights: Vec<_> = file_content_list - .into_iter() - .filter_map(|content| { - if content.is_empty() { - None - } else { - serde_json::from_str::(&content).ok() - } - }) - .flat_map(|index_file| index_file.heights) - .filter(|block_height| *block_height >= start_block_height) - .collect(); - - let pattern_has_multiple_contracts = contract_pattern.chars().any(|c| c == ',' || c == '*'); - if pattern_has_multiple_contracts { - block_heights.sort(); - block_heights.dedup(); - } - - tracing::debug!( - "Found {} matching block heights matching {}", - block_heights.len(), - contract_pattern, - ); - - Ok(block_heights) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use mockall::predicate; - - fn generate_block_with_timestamp(date: &str) -> String { - let naive_date = chrono::NaiveDate::parse_from_str(date, "%Y-%m-%d") - .unwrap() - .and_hms_opt(0, 0, 0) - .unwrap(); - - let date_time_utc = chrono::Utc.from_utc_datetime(&naive_date).timestamp() * 1_000_000_000; - - format!( - r#"{{ - "author": "someone", - "header": {{ - "approvals": [], - "block_merkle_root": "ERiC7AJ2zbVz1HJHThR5NWDDN9vByhwdjcVfivmpY5B", - "block_ordinal": 92102682, - "challenges_result": [], - "challenges_root": "11111111111111111111111111111111", - "chunk_headers_root": "MDiJxDyvUQaZRKmUwa5jgQuV6XjwVvnm4tDrajCxwvz", - "chunk_mask": [], - "chunk_receipts_root": "n84wEo7kTKTCJsyqBZ2jndhjrAMeJAXMwKvnJR7vCuy", - "chunk_tx_root": "D8j64GMKBMvUfvnuHtWUyDtMHM5mJ2pA4G5VmYYJvo5G", - "chunks_included": 4, - "epoch_id": "2RMQiomr6CSSwUWpmB62YohxHbfadrHfcsaa3FVb4J9x", - "epoch_sync_data_hash": null, - "gas_price": "100000000", - "hash": "FA1z9RVm9fX3g3mgP3NToZGwWeeXYn8bvZs4nwwTgCpD", - "height": 102162333, - "last_ds_final_block": "Ax2a3MSYuv2hgybnCbpNJMdYmPrHDHdA2hHTUrBkD915", - "last_final_block": "8xkwjn6Lb6UhMBhxcbVQBf3318GafkdaXoHA8Jako1nn", - "latest_protocol_version": 62, - "next_bp_hash": "dmW84aEj2iVJMLwJodJwTfAyeA1LJaHEthvnoAsvTPt", - "next_epoch_id": "C9TDDYthANoduoTBZS7WYDsBSe9XCm4M2F9hRoVXVXWY", - "outcome_root": "6WxzWLVp4b4bFbxHzu18apVfXLvHGKY7CHoqD2Eq3TFJ", - "prev_hash": "Ax2a3MSYuv2hgybnCbpNJMdYmPrHDHdA2hHTUrBkD915", - "prev_height": 102162332, - "prev_state_root": "Aq2ndkyDiwroUWN69Ema9hHtnr6dPHoEBRNyfmd8v4gB", - "random_value": "7ruuMyDhGtTkYaCGYMy7PirPiM79DXa8GhVzQW1pHRoz", - "rent_paid": "0", - "signature": "ed25519:5gYYaWHkAEK5etB8tDpw7fmehkoYSprUxKPygaNqmhVDFCMkA1n379AtL1BBkQswLAPxWs1BZvypFnnLvBtHRknm", - "timestamp": 1695921400989555700, - "timestamp_nanosec": "{}", - "total_supply": "1155783047679681223245725102954966", - "validator_proposals": [], - "validator_reward": "0" - }}, - "chunks": [] - }}"#, - date_time_utc - ) - } - - #[tokio::test] - async fn fetches_metadata_from_s3() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET), predicate::eq(LATEST_BLOCK_METADATA_KEY)) - .returning(|_bucket, _prefix| Ok("{ \"last_indexed_block\": \"106309326\", \"first_indexed_block\": \"106164983\", \"last_indexed_block_date\": \"2023-11-22\", \"first_indexed_block_date\": \"2023-11-21\", \"processed_at_utc\": \"2023-11-22 23:06:24.358000\" }".to_string())); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let latest_block_metadata = delta_lake_client.get_latest_block_metadata().await.unwrap(); - - assert_eq!( - latest_block_metadata, - LatestBlockMetadata { - last_indexed_block: "106309326".to_string(), - first_indexed_block: "106164983".to_string(), - last_indexed_block_date: "2023-11-22".to_string(), - first_indexed_block_date: "2023-11-21".to_string(), - processed_at_utc: "2023-11-22 23:06:24.358000".to_string(), - } - ) - } - - #[tokio::test] - async fn lists_block_heights_for_single_contract() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000091940840/block.json"), - ) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2023-05-16"))); - mock_s3_client - .expect_list_all_objects() - .returning(|_bucket, _prefix| { - Ok(vec![ - "silver/accounts/action_receipt_actions/metadata/near/dataplatform/queryapi/2023-05-15.json".to_string(), - "silver/accounts/action_receipt_actions/metadata/near/dataplatform/queryapi/2023-05-17.json".to_string(), - ]) - }); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/dataplatform/queryapi/2023-05-15.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[91940840,91942989],\"actions\":[{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[91942989,91940840]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/dataplatform/queryapi/2023-05-17.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[92080299,92080344],\"actions\":[{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[92080344,92080299]}]}".to_string())); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_heights = delta_lake_client - .list_matching_block_heights(91940840, "queryapi.dataplatform.near") - .await - .unwrap(); - - assert_eq!(block_heights, vec![92080299, 92080344]) - } - - #[tokio::test] - async fn lists_block_heights_for_multiple_contracts() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000045894617/block.json"), - ) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2022-05-26"))); - mock_s3_client - .expect_list_all_objects() - .returning(|_bucket, prefix| { - let objects = match prefix { - "silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/2021-08-22.json".to_string() - ], - "silver/accounts/action_receipt_actions/metadata/near/aurora-silo-dev/hackathon/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/aurora-silo-dev/hackathon/2023-05-18.json".to_string(), - "silver/accounts/action_receipt_actions/metadata/near/aurora-silo-dev/hackathon/2023-05-30.json".to_string(), - ], - "silver/accounts/action_receipt_actions/metadata/near/sputnik-dao/hackathon/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/sputnik-dao/hackathon/2022-05-27.json".to_string() - ], - _ => panic!("Unexpected prefix: {}", prefix) - }; - - Ok(objects) - }); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/2021-08-22.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[45894617,45894627,45894628,45894712,45898413,45898423,45898424],\"actions\":[{\"action_kind\":\"CREATE_ACCOUNT\",\"block_heights\":[45894617,45898413]},{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[45898423,45894627]},{\"action_kind\":\"DELETE_ACCOUNT\",\"block_heights\":[45894712]},{\"action_kind\":\"ADD_KEY\",\"block_heights\":[45894617,45898413]},{\"action_kind\":\"TRANSFER\",\"block_heights\":[45894628,45894617,45898424,45898413]},{\"action_kind\":\"DEPLOY_CONTRACT\",\"block_heights\":[45898423,45894627]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/aurora-silo-dev/hackathon/2023-05-18.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[92167977,92168200,92168293,92168338,92168535,92168870,92168871,92168922,92168923,92168939,92168971,92169330],\"actions\":[{\"action_kind\":\"DEPLOY_CONTRACT\",\"block_heights\":[92168200,92168338]},{\"action_kind\":\"ADD_KEY\",\"block_heights\":[92168535,92167977]},{\"action_kind\":\"CREATE_ACCOUNT\",\"block_heights\":[92167977]},{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[92168922,92168971,92168870]},{\"action_kind\":\"TRANSFER\",\"block_heights\":[92168871,92168923,92169330,92168293,92168939,92167977]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/aurora-silo-dev/hackathon/2023-05-30.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[92167977,93067570,93067619,93067631,93067726,93067737,93067770,93067889,93067920,93067926,93067936,93073935,93073944,93073954],\"actions\":[{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[93073954,93067770,93067726,93065811,93067619,93073935,93067889,93067737,93067570,93067926,93073944,93067920,93067631,93067936]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/sputnik-dao/hackathon/2022-05-27.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[66494954],\"actions\":[{\"action_kind\":\"CREATE_ACCOUNT\",\"block_heights\":[66494954]},{\"action_kind\":\"DEPLOY_CONTRACT\",\"block_heights\":[66494954]},{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[66494954]},{\"action_kind\":\"TRANSFER\",\"block_heights\":[66494954]}]}".to_string())); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_heights = delta_lake_client - .list_matching_block_heights( - 45894617, - "hackathon.agency.near, hackathon.aurora-silo-dev.near, hackathon.sputnik-dao.near", - ) - .await - .unwrap(); - - assert_eq!( - block_heights, - vec![ - 66494954, 92167977, 92168200, 92168293, 92168338, 92168535, 92168870, 92168871, - 92168922, 92168923, 92168939, 92168971, 92169330, 93067570, 93067619, 93067631, - 93067726, 93067737, 93067770, 93067889, 93067920, 93067926, 93067936, 93073935, - 93073944, 93073954 - ] - ) - } - - #[tokio::test] - async fn lists_block_heights_for_wildcard() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000078516467/block.json"), - ) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2023-05-26"))); - mock_s3_client - .expect_list_all_objects() - .returning(|_bucket, prefix| { - let objects = match prefix { - "silver/accounts/action_receipt_actions/metadata/near/keypom/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/".to_string(), - "silver/accounts/action_receipt_actions/metadata/near/keypom/nft/".to_string(), - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-23.json".to_string(), - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string(), - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15.json".to_string(), - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/nft/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/nft/2023-09-26.json".to_string(), - ], - - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-23.json" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-23.json".to_string() - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string() - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15.json" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15json".to_string() - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/nft/2023-09-26.json" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/nft/2023-09-26.json".to_string() - ], - _ => panic!("Unexpected prefix: {}", prefix) - }; - - Ok(objects) - }); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[78516467,78516476,78516489,78516511,78516512],\"actions\":[{\"action_kind\":\"DELETE_ACCOUNT\",\"block_heights\":[78516467]},{\"action_kind\":\"CREATE_ACCOUNT\",\"block_heights\":[78516476]},{\"action_kind\":\"TRANSFER\",\"block_heights\":[78516476,78516512]},{\"action_kind\":\"ADD_KEY\",\"block_heights\":[78516476]},{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[78516511]},{\"action_kind\":\"DEPLOY_CONTRACT\",\"block_heights\":[78516489]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/nft/2023-09-26.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[102025554],\"actions\":[{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[102025554]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-23.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[104045849,104047967,104047968],\"actions\":[{\"action_kind\":\"TRANSFER\",\"block_heights\":[104047968,104045849,104047967]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[104616819],\"actions\":[{\"action_kind\":\"ADD_KEY\",\"block_heights\":[104616819]}]}".to_string())); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_heights = delta_lake_client - .list_matching_block_heights(78516467, "*.keypom.near") - .await - .unwrap(); - - assert_eq!( - block_heights, - vec![102025554, 104045849, 104047967, 104047968, 104616819] - ) - } - - #[tokio::test] - async fn lists_block_heights_for_multiple_contracts_and_wildcard() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000045894617/block.json"), - ) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2021-05-26"))); - mock_s3_client - .expect_list_all_objects() - .returning(|_bucket, prefix| { - let objects = match prefix { - "silver/accounts/action_receipt_actions/metadata/near/keypom/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/".to_string(), - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string(), - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15.json".to_string(), - ], - "silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/2021-08-22.json".to_string() - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string() - ], - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15.json" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15json".to_string() - ], - _ => panic!("Unexpected prefix: {}", prefix) - }; - - Ok(objects) - }); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/2021-08-22.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[45894617,45894627,45894628,45894712,45898413,45898423,45898424],\"actions\":[{\"action_kind\":\"CREATE_ACCOUNT\",\"block_heights\":[45894617,45898413]},{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[45898423,45894627]},{\"action_kind\":\"DELETE_ACCOUNT\",\"block_heights\":[45894712]},{\"action_kind\":\"ADD_KEY\",\"block_heights\":[45894617,45898413]},{\"action_kind\":\"TRANSFER\",\"block_heights\":[45894628,45894617,45898424,45898413]},{\"action_kind\":\"DEPLOY_CONTRACT\",\"block_heights\":[45898423,45894627]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/beta/2022-11-15.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[78516467,78516476,78516489,78516511,78516512],\"actions\":[{\"action_kind\":\"DELETE_ACCOUNT\",\"block_heights\":[78516467]},{\"action_kind\":\"CREATE_ACCOUNT\",\"block_heights\":[78516476]},{\"action_kind\":\"TRANSFER\",\"block_heights\":[78516476,78516512]},{\"action_kind\":\"ADD_KEY\",\"block_heights\":[78516476]},{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[78516511]},{\"action_kind\":\"DEPLOY_CONTRACT\",\"block_heights\":[78516489]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[104616819],\"actions\":[{\"action_kind\":\"ADD_KEY\",\"block_heights\":[104616819]}]}".to_string())); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_heights = delta_lake_client - .list_matching_block_heights(45894617, "*.keypom.near, hackathon.agency.near") - .await - .unwrap(); - - assert_eq!( - block_heights, - vec![ - 45894617, 45894627, 45894628, 45894712, 45898413, 45898423, 45898424, 78516467, - 78516476, 78516489, 78516511, 78516512, 104616819 - ] - ) - } - - #[tokio::test] - async fn sorts_and_removes_duplicates_for_multiple_contracts() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000045894628/block.json"), - ) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2021-05-26"))); - mock_s3_client - .expect_list_all_objects() - .returning(|_bucket, prefix| { - let objects = match prefix { - "silver/accounts/action_receipt_actions/metadata/near/keypom/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string(), - ], - "silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/" => vec![ - "silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/2021-08-22.json".to_string() - ], - - _ => panic!("Unexpected prefix: {}", prefix) - }; - - Ok(objects) - }); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/agency/hackathon/2021-08-22.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[45894628,45894617,45898413,45894627,45894712,45898423,45898424],\"actions\":[{\"action_kind\":\"CREATE_ACCOUNT\",\"block_heights\":[45894617,45898413]},{\"action_kind\":\"FUNCTION_CALL\",\"block_heights\":[45898423,45894627]},{\"action_kind\":\"DELETE_ACCOUNT\",\"block_heights\":[45894712]},{\"action_kind\":\"ADD_KEY\",\"block_heights\":[45894617,45898413]},{\"action_kind\":\"TRANSFER\",\"block_heights\":[45894628,45894617,45898424,45898413]},{\"action_kind\":\"DEPLOY_CONTRACT\",\"block_heights\":[45898423,45894627]}]}".to_string())); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[45898424,45898423,45898413,45894712],\"actions\":[{\"action_kind\":\"ADD_KEY\",\"block_heights\":[104616819]}]}".to_string())); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_heights = delta_lake_client - .list_matching_block_heights(45894628, "keypom.near, hackathon.agency.near") - .await - .unwrap(); - - assert_eq!( - block_heights, - vec![45894628, 45894712, 45898413, 45898423, 45898424] - ) - } - - #[tokio::test] - async fn filters_heights_less_than_start_block() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000045898423/block.json"), - ) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2021-05-26"))); - mock_s3_client.expect_list_all_objects().returning(|_, _| { - Ok(vec![ - "silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json" - .to_string(), - ]) - }); - mock_s3_client - .expect_get_text_file() - .with(predicate::eq(DELTA_LAKE_BUCKET.to_string()), predicate::eq("silver/accounts/action_receipt_actions/metadata/near/keypom/2023-10-31.json".to_string())) - .returning(|_bucket, _prefix| Ok("{\"heights\":[45898424,45898423,45898413,45894712],\"actions\":[{\"action_kind\":\"ADD_KEY\",\"block_heights\":[104616819]}]}".to_string())); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_heights = delta_lake_client - .list_matching_block_heights(45898423, "keypom.near, hackathon.agency.near") - .await - .unwrap(); - - assert_eq!(block_heights, vec![45898423, 45898424]) - } - - #[tokio::test] - async fn gets_the_date_of_the_closest_block() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000106397175/block.json"), - ) - .times(1) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2021-05-26"))); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_date = delta_lake_client - .get_nearest_block_date(106397175) - .await - .unwrap(); - - assert_eq!(block_date, chrono::Utc.timestamp_nanos(1621987200000000000)); - } - - #[tokio::test] - async fn retires_if_a_block_doesnt_exist() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000106397175/block.json"), - ) - .times(1) - .returning(|_, _| { - Err(anyhow::anyhow!( - aws_sdk_s3::types::error::NoSuchKey::builder().build() - )) - }); - mock_s3_client - .expect_get_text_file() - .with( - predicate::eq("near-lake-data-mainnet"), - predicate::eq("000106397176/block.json"), - ) - .times(1) - .returning(|_bucket, _prefix| Ok(generate_block_with_timestamp("2021-05-26"))); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let block_date = delta_lake_client - .get_nearest_block_date(106397175) - .await - .unwrap(); - - assert_eq!(block_date, chrono::Utc.timestamp_nanos(1621987200000000000)); - } - - #[tokio::test] - async fn exits_if_maximum_retries_exceeded() { - let mut mock_s3_client = crate::s3_client::S3Client::default(); - - mock_s3_client - .expect_get_text_file() - .times(MAX_S3_RETRY_COUNT as usize) - .returning(|_, _| { - Err(anyhow::anyhow!( - aws_sdk_s3::types::error::NoSuchKey::builder().build() - )) - }); - - let delta_lake_client = DeltaLakeClientImpl::new(mock_s3_client); - - let result = delta_lake_client.get_nearest_block_date(106397175).await; - - assert!(result.is_err()); - } -} diff --git a/block-streamer/src/graphql/client.rs b/block-streamer/src/graphql/client.rs index 6f109603f..38aad6375 100644 --- a/block-streamer/src/graphql/client.rs +++ b/block-streamer/src/graphql/client.rs @@ -2,8 +2,7 @@ use ::reqwest; use chrono::{DateTime, Utc}; use graphql_client::{GraphQLQuery, Response}; -// TODO: Use Dataplatform account -const HASURA_ACCOUNT: &str = "darunrs_near"; +const HASURA_ACCOUNT: &str = "dataplatform_near"; const QUERY_LIMIT: i64 = 1000; #[allow(clippy::upper_case_acronyms)] @@ -11,8 +10,8 @@ type Date = String; #[derive(GraphQLQuery)] #[graphql( - schema_path = "graphql/darunrs_near/schema.graphql", - query_path = "graphql/darunrs_near/get_bitmaps_exact.graphql", + schema_path = "graphql/dataplatform_near/schema.graphql", + query_path = "graphql/dataplatform_near/get_bitmaps_exact.graphql", response_derives = "Debug,Clone", normalization = "rust" )] @@ -20,8 +19,8 @@ pub struct GetBitmapsExact; #[derive(GraphQLQuery)] #[graphql( - schema_path = "graphql/darunrs_near/schema.graphql", - query_path = "graphql/darunrs_near/get_bitmaps_wildcard.graphql", + schema_path = "graphql/dataplatform_near/schema.graphql", + query_path = "graphql/dataplatform_near/get_bitmaps_wildcard.graphql", response_derives = "Debug,Clone", normalization = "rust" )] @@ -66,13 +65,14 @@ impl GraphQLClientImpl { &self, receiver_ids: Vec, block_date: &DateTime, - ) -> anyhow::Result> + ) -> anyhow::Result> { let mut all_query_results: Vec< - get_bitmaps_exact::GetBitmapsExactDarunrsNearBitmapV5ActionsIndex, + get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps, > = vec![]; let mut offset = 0; let mut has_more = true; + while has_more { let mut query_result = self .post_graphql::(get_bitmaps_exact::Variables { @@ -86,7 +86,7 @@ impl GraphQLClientImpl { .ok_or(anyhow::anyhow!( "Query response is malformed. Missing data field." )) - .map(|data| data.darunrs_near_bitmap_v5_actions_index)?; + .map(|data| data.dataplatform_near_receiver_blocks_bitmaps)?; has_more = query_result.len() >= QUERY_LIMIT as usize; offset += QUERY_LIMIT; @@ -101,10 +101,11 @@ impl GraphQLClientImpl { &self, receiver_ids: String, block_date: &DateTime, - ) -> anyhow::Result> - { + ) -> anyhow::Result< + Vec, + > { let mut all_query_results: Vec< - get_bitmaps_wildcard::GetBitmapsWildcardDarunrsNearBitmapV5ActionsIndex, + get_bitmaps_wildcard::GetBitmapsWildcardDataplatformNearReceiverBlocksBitmaps, > = vec![]; let mut offset = 0; let mut has_more = true; @@ -121,7 +122,7 @@ impl GraphQLClientImpl { .ok_or(anyhow::anyhow!( "Query response is malformed. Missing data field." )) - .map(|data| data.darunrs_near_bitmap_v5_actions_index)?; + .map(|data| data.dataplatform_near_receiver_blocks_bitmaps)?; has_more = query_result.len() >= QUERY_LIMIT as usize; offset += QUERY_LIMIT; @@ -141,7 +142,7 @@ mod tests { use super::*; const HASURA_ENDPOINT: &str = - "https://queryapi-hasura-graphql-mainnet-vcqilefdcq-ew.a.run.app/v1/graphql"; + "https://queryapi-hasura-graphql-mainnet-24ktefolwq-ew.a.run.app/v1/graphql"; fn utc_date_time_from_date_string(date: &str) -> DateTime { let naive_date_time: NaiveDateTime = chrono::NaiveDate::parse_from_str(date, "%Y-%m-%d") diff --git a/block-streamer/src/main.rs b/block-streamer/src/main.rs index 7776f77d9..853ffbae4 100644 --- a/block-streamer/src/main.rs +++ b/block-streamer/src/main.rs @@ -1,13 +1,11 @@ use tracing_subscriber::prelude::*; -mod bitmap; -mod bitmap_processor; mod block_stream; -mod delta_lake_client; mod graphql; mod indexer_config; mod lake_s3_client; mod metrics; +mod receiver_blocks; mod redis; mod rules; mod s3_client; @@ -32,6 +30,8 @@ async fn main() -> anyhow::Result<()> { } let redis_url = std::env::var("REDIS_URL").expect("REDIS_URL is not set"); + let graphql_endpoint = + std::env::var("HASURA_GRAPHQL_ENDPOINT").expect("HASURA_GRAPHQL_ENDPOINT is not set"); let grpc_port = std::env::var("GRPC_PORT").expect("GRPC_PORT is not set"); let metrics_port = std::env::var("METRICS_PORT") .expect("METRICS_PORT is not set") @@ -42,6 +42,7 @@ async fn main() -> anyhow::Result<()> { redis_url, grpc_port, metrics_port, + graphql_endpoint, "Starting Block Streamer" ); @@ -51,14 +52,16 @@ async fn main() -> anyhow::Result<()> { let s3_config = aws_sdk_s3::Config::from(&aws_config); let s3_client = crate::s3_client::S3Client::new(s3_config.clone()); - let delta_lake_client = - std::sync::Arc::new(crate::delta_lake_client::DeltaLakeClient::new(s3_client)); + let graphql_client = graphql::client::GraphQLClient::new(graphql_endpoint); + let receiver_blocks_processor = std::sync::Arc::new( + crate::receiver_blocks::ReceiverBlocksProcessor::new(graphql_client, s3_client.clone()), + ); let lake_s3_client = crate::lake_s3_client::SharedLakeS3Client::from_conf(s3_config); tokio::spawn(metrics::init_server(metrics_port).expect("Failed to start metrics server")); - server::init(&grpc_port, redis, delta_lake_client, lake_s3_client).await?; + server::init(&grpc_port, redis, receiver_blocks_processor, lake_s3_client).await?; Ok(()) } diff --git a/block-streamer/src/bitmap.rs b/block-streamer/src/receiver_blocks/bitmap.rs similarity index 92% rename from block-streamer/src/bitmap.rs rename to block-streamer/src/receiver_blocks/bitmap.rs index 55dbc95f6..9293cb490 100644 --- a/block-streamer/src/bitmap.rs +++ b/block-streamer/src/receiver_blocks/bitmap.rs @@ -1,4 +1,3 @@ -use anyhow::anyhow; use base64::{engine::general_purpose, Engine as _}; use std::convert::TryFrom; @@ -10,10 +9,12 @@ pub struct Base64Bitmap { pub base64: String, } -impl TryFrom<&get_bitmaps_exact::GetBitmapsExactDarunrsNearBitmapV5ActionsIndex> for Base64Bitmap { +impl TryFrom<&get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps> + for Base64Bitmap +{ type Error = anyhow::Error; fn try_from( - query_item: &get_bitmaps_exact::GetBitmapsExactDarunrsNearBitmapV5ActionsIndex, + query_item: &get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps, ) -> anyhow::Result { Ok(Self { base64: query_item.bitmap.clone(), @@ -22,12 +23,12 @@ impl TryFrom<&get_bitmaps_exact::GetBitmapsExactDarunrsNearBitmapV5ActionsIndex> } } -impl TryFrom<&get_bitmaps_wildcard::GetBitmapsWildcardDarunrsNearBitmapV5ActionsIndex> +impl TryFrom<&get_bitmaps_wildcard::GetBitmapsWildcardDataplatformNearReceiverBlocksBitmaps> for Base64Bitmap { type Error = anyhow::Error; fn try_from( - query_item: &get_bitmaps_wildcard::GetBitmapsWildcardDarunrsNearBitmapV5ActionsIndex, + query_item: &get_bitmaps_wildcard::GetBitmapsWildcardDataplatformNearReceiverBlocksBitmaps, ) -> anyhow::Result { Ok(Self { base64: query_item.bitmap.clone(), @@ -59,6 +60,7 @@ impl TryFrom<&Base64Bitmap> for CompressedBitmap { } impl CompressedBitmap { + #[cfg(test)] pub fn new(start_block_height: u64, bitmap: Vec) -> Self { Self { start_block_height, @@ -73,14 +75,6 @@ impl CompressedBitmap { (self.bitmap[byte_index] & (1u8 << (7 - bit_index_in_byte))) > 0 } - fn set_bit(&mut self, bit_index: usize, bit_value: bool, write_zero: bool) { - if !bit_value && write_zero { - self.bitmap[bit_index / 8] &= !(1u8 << (7 - (bit_index % 8))); - } else if bit_value { - self.bitmap[bit_index / 8] |= 1u8 << (7 - (bit_index % 8)); - } - } - fn read_integer_from_binary(&self, start_bit_index: usize, end_bit_index: usize) -> u64 { let mut number: u64 = 0; // Read bits from right to left @@ -180,7 +174,7 @@ impl DecompressedBitmap { pub fn new(start_block_height: u64, bitmap: Option>) -> Self { Self { start_block_height, - bitmap: bitmap.unwrap_or(vec![]), + bitmap: bitmap.unwrap_or_default(), } } @@ -276,9 +270,7 @@ mod tests { let bitmap = DecompressedBitmap::new(0, Some(bytes)); let results: Vec = [7, 8, 9, 15, 19, 20, 22, 23] .iter() - .map(|index| { - return bitmap.get_bit(*index); - }) + .map(|index| bitmap.get_bit(*index)) .collect(); assert_eq!( results, @@ -437,7 +429,7 @@ mod tests { bitmap: vec![0b11001010, 0b10001111], start_block_height: 10, }; - let mut to_merge: DecompressedBitmap = DecompressedBitmap { + let to_merge: DecompressedBitmap = DecompressedBitmap { bitmap: vec![0b11100001], start_block_height: 14, }; @@ -448,7 +440,7 @@ mod tests { #[test] fn merge_two_bitmaps_with_swap() { - let mut to_merge: DecompressedBitmap = DecompressedBitmap { + let to_merge: DecompressedBitmap = DecompressedBitmap { bitmap: vec![0b11001010, 0b10001111], start_block_height: 10, }; @@ -464,15 +456,15 @@ mod tests { #[test] fn merge_multiple_bitmaps_together() { let mut base_bitmap = DecompressedBitmap::new(200, None); - let mut bitmap_a = DecompressedBitmap { + let bitmap_a = DecompressedBitmap { bitmap: vec![0b11000000], start_block_height: 18, }; - let mut bitmap_b = DecompressedBitmap { + let bitmap_b = DecompressedBitmap { bitmap: vec![0b11000000], start_block_height: 10, }; - let mut bitmap_c = DecompressedBitmap { + let bitmap_c = DecompressedBitmap { bitmap: vec![0b11000000], start_block_height: 14, }; diff --git a/block-streamer/src/receiver_blocks/mod.rs b/block-streamer/src/receiver_blocks/mod.rs new file mode 100644 index 000000000..e4130bf97 --- /dev/null +++ b/block-streamer/src/receiver_blocks/mod.rs @@ -0,0 +1,4 @@ +mod bitmap; +mod receiver_blocks_processor; + +pub use receiver_blocks_processor::ReceiverBlocksProcessor; diff --git a/block-streamer/src/bitmap_processor.rs b/block-streamer/src/receiver_blocks/receiver_blocks_processor.rs similarity index 74% rename from block-streamer/src/bitmap_processor.rs rename to block-streamer/src/receiver_blocks/receiver_blocks_processor.rs index 79bf12597..5dcb28dcf 100644 --- a/block-streamer/src/bitmap_processor.rs +++ b/block-streamer/src/receiver_blocks/receiver_blocks_processor.rs @@ -1,14 +1,14 @@ -use crate::bitmap::{Base64Bitmap, CompressedBitmap, DecompressedBitmap}; -use crate::graphql::client::GraphQLClient; -use crate::rules::types::ChainId; use anyhow::Context; use async_stream::try_stream; use chrono::{DateTime, Duration, TimeZone, Utc}; -use futures::stream::{BoxStream, Stream}; -use futures::StreamExt; use near_lake_framework::near_indexer_primitives; use regex::Regex; +use crate::graphql::client::GraphQLClient; +use crate::rules::types::ChainId; + +use super::bitmap::{Base64Bitmap, CompressedBitmap, DecompressedBitmap}; + const MAX_S3_RETRY_COUNT: u8 = 20; #[derive(Debug, Eq, PartialEq)] @@ -62,13 +62,13 @@ impl From<&str> for ContractPatternType { } } -pub struct BitmapProcessor { +pub struct ReceiverBlocksProcessor { graphql_client: GraphQLClient, s3_client: crate::s3_client::S3Client, chain_id: ChainId, } -impl BitmapProcessor { +impl ReceiverBlocksProcessor { pub fn new(graphql_client: GraphQLClient, s3_client: crate::s3_client::S3Client) -> Self { Self { graphql_client, @@ -137,7 +137,7 @@ impl BitmapProcessor { ContractPatternType::Exact(ref pattern) => { let query_result: Vec<_> = self .graphql_client - .get_bitmaps_exact(pattern.clone(), ¤t_date) + .get_bitmaps_exact(pattern.clone(), current_date) .await?; Ok(query_result .iter() @@ -147,7 +147,7 @@ impl BitmapProcessor { ContractPatternType::Wildcard(ref pattern) => { let query_result: Vec<_> = self .graphql_client - .get_bitmaps_wildcard(pattern.clone(), ¤t_date) + .get_bitmaps_wildcard(pattern.clone(), current_date) .await?; Ok(query_result .iter() @@ -157,7 +157,7 @@ impl BitmapProcessor { } } - fn stream_matching_block_heights<'b, 'a: 'b>( + pub fn stream_matching_block_heights<'b, 'a: 'b>( &'a self, start_block_height: near_indexer_primitives::types::BlockHeight, contract_pattern: String, @@ -166,22 +166,29 @@ impl BitmapProcessor { let start_date = self.get_nearest_block_date(start_block_height).await?; let contract_pattern_type = ContractPatternType::from(contract_pattern.as_str()); let mut current_date = start_date; + while current_date <= Utc::now() { let base_64_bitmaps: Vec = self.query_base_64_bitmaps(&contract_pattern_type, ¤t_date).await?; - let compressed_bitmaps: Vec = base_64_bitmaps.iter().map(CompressedBitmap::try_from).collect()?; - let decompressed_bitmaps: Vec = compressed_bitmaps.iter().map(CompressedBitmap::decompress).collect()?; + + current_date = self.next_day(current_date); + + if base_64_bitmaps.is_empty() { + continue; + } + + let compressed_bitmaps: Vec<_> = base_64_bitmaps.iter().map(CompressedBitmap::try_from).collect()?; + let decompressed_bitmaps: Vec<_> = compressed_bitmaps.iter().map(CompressedBitmap::decompress).collect()?; let starting_block_height: u64 = decompressed_bitmaps.iter().map(|item| item.start_block_height).min().unwrap_or(decompressed_bitmaps[0].start_block_height); + let mut bitmap_for_day = DecompressedBitmap::new(starting_block_height, None); for bitmap in decompressed_bitmaps { bitmap_for_day.merge(bitmap)?; } - let mut bitmap_iter = bitmap_for_day.iter(); - while let Some(block_height) = bitmap_iter.next() { + for block_height in bitmap_for_day.iter() { yield block_height; } - current_date = self.next_day(current_date); } } } @@ -192,12 +199,14 @@ mod tests { use super::*; use mockall::predicate; + use futures::StreamExt; + fn exact_query_result( first_block_height: i64, bitmap: &str, - ) -> crate::graphql::client::get_bitmaps_exact::GetBitmapsExactDarunrsNearBitmapV5ActionsIndex + ) -> crate::graphql::client::get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps { - crate::graphql::client::get_bitmaps_exact::GetBitmapsExactDarunrsNearBitmapV5ActionsIndex { + crate::graphql::client::get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps { first_block_height, bitmap: bitmap.to_string(), } @@ -206,67 +215,16 @@ mod tests { fn wildcard_query_result( first_block_height: i64, bitmap: &str - ) -> crate::graphql::client::get_bitmaps_wildcard::GetBitmapsWildcardDarunrsNearBitmapV5ActionsIndex{ - crate::graphql::client::get_bitmaps_wildcard::GetBitmapsWildcardDarunrsNearBitmapV5ActionsIndex { + ) -> crate::graphql::client::get_bitmaps_wildcard::GetBitmapsWildcardDataplatformNearReceiverBlocksBitmaps{ + crate::graphql::client::get_bitmaps_wildcard::GetBitmapsWildcardDataplatformNearReceiverBlocksBitmaps { first_block_height, bitmap: bitmap.to_string(), } } - fn generate_block_with_timestamp(date: &str) -> String { - let naive_date = chrono::NaiveDate::parse_from_str(date, "%Y-%m-%d") - .unwrap() - .and_hms_opt(0, 0, 0) - .unwrap(); - - let date_time_utc = chrono::Utc.from_utc_datetime(&naive_date).timestamp() * 1_000_000_000; - - format!( - r#"{{ - "author": "someone", - "header": {{ - "approvals": [], - "block_merkle_root": "ERiC7AJ2zbVz1HJHThR5NWDDN9vByhwdjcVfivmpY5B", - "block_ordinal": 92102682, - "challenges_result": [], - "challenges_root": "11111111111111111111111111111111", - "chunk_headers_root": "MDiJxDyvUQaZRKmUwa5jgQuV6XjwVvnm4tDrajCxwvz", - "chunk_mask": [], - "chunk_receipts_root": "n84wEo7kTKTCJsyqBZ2jndhjrAMeJAXMwKvnJR7vCuy", - "chunk_tx_root": "D8j64GMKBMvUfvnuHtWUyDtMHM5mJ2pA4G5VmYYJvo5G", - "chunks_included": 4, - "epoch_id": "2RMQiomr6CSSwUWpmB62YohxHbfadrHfcsaa3FVb4J9x", - "epoch_sync_data_hash": null, - "gas_price": "100000000", - "hash": "FA1z9RVm9fX3g3mgP3NToZGwWeeXYn8bvZs4nwwTgCpD", - "height": 102162333, - "last_ds_final_block": "Ax2a3MSYuv2hgybnCbpNJMdYmPrHDHdA2hHTUrBkD915", - "last_final_block": "8xkwjn6Lb6UhMBhxcbVQBf3318GafkdaXoHA8Jako1nn", - "latest_protocol_version": 62, - "next_bp_hash": "dmW84aEj2iVJMLwJodJwTfAyeA1LJaHEthvnoAsvTPt", - "next_epoch_id": "C9TDDYthANoduoTBZS7WYDsBSe9XCm4M2F9hRoVXVXWY", - "outcome_root": "6WxzWLVp4b4bFbxHzu18apVfXLvHGKY7CHoqD2Eq3TFJ", - "prev_hash": "Ax2a3MSYuv2hgybnCbpNJMdYmPrHDHdA2hHTUrBkD915", - "prev_height": 102162332, - "prev_state_root": "Aq2ndkyDiwroUWN69Ema9hHtnr6dPHoEBRNyfmd8v4gB", - "random_value": "7ruuMyDhGtTkYaCGYMy7PirPiM79DXa8GhVzQW1pHRoz", - "rent_paid": "0", - "signature": "ed25519:5gYYaWHkAEK5etB8tDpw7fmehkoYSprUxKPygaNqmhVDFCMkA1n379AtL1BBkQswLAPxWs1BZvypFnnLvBtHRknm", - "timestamp": 1695921400989555700, - "timestamp_nanosec": "{}", - "total_supply": "1155783047679681223245725102954966", - "validator_proposals": [], - "validator_reward": "0" - }}, - "chunks": [] - }}"#, - date_time_utc - ) - } - #[test] fn parse_exact_contract_patterns() { - let sample_patterns = vec![ + let sample_patterns = [ "near", "*.near", "near, someone.tg", @@ -307,7 +265,7 @@ mod tests { #[test] fn parse_wildcard_contract_patterns() { - let sample_patterns = vec![ + let sample_patterns = [ "*.someone.near", "near, someone.*.tg", "a.near, b.*, *.b, a.*.c.near", @@ -333,14 +291,12 @@ mod tests { mock_s3_client .expect_get_text_file() .returning(move |_, _| { - Ok(generate_block_with_timestamp( + Ok(crate::test_utils::generate_block_with_timestamp( &Utc::now().format("%Y-%m-%d").to_string(), )) }); let mut mock_graphql_client = crate::graphql::client::GraphQLClient::default(); - let mock_query_result_item = exact_query_result(1, "wA=="); - let mock_query_result = vec![mock_query_result_item]; mock_graphql_client .expect_get_bitmaps_exact() .with( @@ -350,16 +306,21 @@ mod tests { }), ) .times(1) - .returning(move |_, _| Ok(mock_query_result.clone())); + .returning(move |_, _| Ok(vec![exact_query_result(1, "wA==")])); + + let reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); - let bitmap_processor = BitmapProcessor::new(mock_graphql_client, mock_s3_client); + let stream = + reciever_blocks_processor.stream_matching_block_heights(0, "someone.near".to_owned()); - let stream = bitmap_processor.stream_matching_block_heights(0, "someone.near".to_owned()); tokio::pin!(stream); + let mut result_heights = vec![]; while let Some(Ok(height)) = stream.next().await { result_heights.push(height); } + assert_eq!(result_heights, vec![1]); } @@ -369,7 +330,7 @@ mod tests { mock_s3_client .expect_get_text_file() .returning(move |_, _| { - Ok(generate_block_with_timestamp( + Ok(crate::test_utils::generate_block_with_timestamp( &(Utc::now() - Duration::days(2)) .format("%Y-%m-%d") .to_string(), @@ -385,13 +346,13 @@ mod tests { date.date_naive() == (Utc::now() - Duration::days(2)).date_naive() }), ) - .times(1) .returning(move |_, _| { Ok(vec![ wildcard_query_result(1, "wA=="), wildcard_query_result(5, "wA=="), ]) - }); + }) + .once(); mock_graphql_client .expect_get_bitmaps_wildcard() .with( @@ -400,13 +361,13 @@ mod tests { date.date_naive() == (Utc::now() - Duration::days(1)).date_naive() }), ) - .times(1) .returning(move |_, _| { Ok(vec![ wildcard_query_result(10, "wA=="), wildcard_query_result(15, "wA=="), ]) - }); + }) + .once(); mock_graphql_client .expect_get_bitmaps_wildcard() .with( @@ -415,17 +376,18 @@ mod tests { date.date_naive() == Utc::now().date_naive() }), ) - .times(1) .returning(move |_, _| { Ok(vec![ wildcard_query_result(100, "wA=="), wildcard_query_result(105, "wA=="), ]) - }); - let bitmap_processor = BitmapProcessor::new(mock_graphql_client, mock_s3_client); + }) + .once(); + let reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); - let stream = - bitmap_processor.stream_matching_block_heights(0, "*.someone.near".to_string()); + let stream = reciever_blocks_processor + .stream_matching_block_heights(0, "*.someone.near".to_string()); tokio::pin!(stream); let mut result_heights = vec![]; while let Some(Ok(height)) = stream.next().await { diff --git a/block-streamer/src/s3_client.rs b/block-streamer/src/s3_client.rs index 650afb863..3f32b5ca8 100644 --- a/block-streamer/src/s3_client.rs +++ b/block-streamer/src/s3_client.rs @@ -2,8 +2,6 @@ use anyhow::Context; -const MAX_S3_LIST_REQUESTS: usize = 1000; - #[cfg(test)] pub use MockS3ClientImpl as S3Client; #[cfg(not(test))] @@ -37,29 +35,6 @@ impl S3ClientImpl { .await } - pub async fn list_objects_with_prefix( - &self, - bucket: &str, - prefix: &str, - continuation_token: Option, - ) -> Result< - aws_sdk_s3::operation::list_objects_v2::ListObjectsV2Output, - aws_sdk_s3::error::SdkError, - > { - let mut builder = self - .client - .list_objects_v2() - .delimiter("/") - .bucket(bucket) - .prefix(prefix); - - if let Some(token) = continuation_token { - builder = builder.continuation_token(token); - } - - builder.send().await - } - pub async fn list_objects_after( &self, bucket: &str, @@ -87,54 +62,6 @@ impl S3ClientImpl { Ok(String::from_utf8(bytes.to_vec())?) } - - pub async fn list_all_objects( - &self, - bucket: &str, - prefix: &str, - ) -> anyhow::Result> { - let mut results = vec![]; - let mut continuation_token: Option = None; - - let mut counter = 0; - loop { - if counter > MAX_S3_LIST_REQUESTS { - anyhow::bail!("Exceeded internal limit of {MAX_S3_LIST_REQUESTS}") - } - - let list = self - .list_objects_with_prefix(bucket, prefix, continuation_token) - .await - .context(format!("Failed to list {bucket}/{prefix}"))?; - - if let Some(common_prefixes) = list.common_prefixes { - let keys: Vec = common_prefixes - .into_iter() - .filter_map(|common_prefix| common_prefix.prefix) - .collect(); - - results.extend(keys); - } - - if let Some(objects) = list.contents { - let keys: Vec = objects - .into_iter() - .filter_map(|object| object.key) - .collect(); - - results.extend(keys); - } - - if list.next_continuation_token.is_some() { - continuation_token = list.next_continuation_token; - counter += 1; - } else { - break; - } - } - - Ok(results) - } } #[cfg(test)] @@ -161,23 +88,7 @@ mockall::mock! { aws_sdk_s3::error::SdkError, >; - pub async fn list_objects_with_prefix( - &self, - bucket: &str, - prefix: &str, - continuation_token: Option, - ) -> Result< - aws_sdk_s3::operation::list_objects_v2::ListObjectsV2Output, - aws_sdk_s3::error::SdkError, - >; - pub async fn get_text_file(&self, bucket: &str, prefix: &str) -> anyhow::Result; - - pub async fn list_all_objects( - &self, - bucket: &str, - prefix: &str, - ) -> anyhow::Result>; } impl Clone for S3ClientImpl { diff --git a/block-streamer/src/server/block_streamer_service.rs b/block-streamer/src/server/block_streamer_service.rs index 6a9037047..94ccb22aa 100644 --- a/block-streamer/src/server/block_streamer_service.rs +++ b/block-streamer/src/server/block_streamer_service.rs @@ -8,13 +8,14 @@ use crate::indexer_config::IndexerConfig; use crate::rules::types::ChainId; use crate::block_stream; +use crate::receiver_blocks::ReceiverBlocksProcessor; use crate::server::blockstreamer; use blockstreamer::*; pub struct BlockStreamerService { redis: std::sync::Arc, - delta_lake_client: std::sync::Arc, + receiver_blocks_processor: std::sync::Arc, lake_s3_client: crate::lake_s3_client::SharedLakeS3Client, chain_id: ChainId, block_streams: Mutex>, @@ -23,12 +24,12 @@ pub struct BlockStreamerService { impl BlockStreamerService { pub fn new( redis: std::sync::Arc, - delta_lake_client: std::sync::Arc, + receiver_blocks_processor: std::sync::Arc, lake_s3_client: crate::lake_s3_client::SharedLakeS3Client, ) -> Self { Self { redis, - delta_lake_client, + receiver_blocks_processor, lake_s3_client, chain_id: ChainId::Mainnet, block_streams: Mutex::new(HashMap::new()), @@ -115,7 +116,7 @@ impl blockstreamer::block_streamer_server::BlockStreamer for BlockStreamerServic .start( request.start_block_height, self.redis.clone(), - self.delta_lake_client.clone(), + self.receiver_blocks_processor.clone(), self.lake_s3_client.clone(), ) .map_err(|err| { @@ -194,24 +195,31 @@ mod tests { use super::*; use blockstreamer::block_streamer_server::BlockStreamer; + use mockall::predicate; fn create_block_streamer_service() -> BlockStreamerService { - let mut mock_delta_lake_client = crate::delta_lake_client::DeltaLakeClient::default(); - mock_delta_lake_client - .expect_get_latest_block_metadata() - .returning(|| { - Ok(crate::delta_lake_client::LatestBlockMetadata { - last_indexed_block: "107503703".to_string(), - processed_at_utc: "".to_string(), - first_indexed_block: "".to_string(), - last_indexed_block_date: "".to_string(), - first_indexed_block_date: "".to_string(), - }) + let mut mock_s3_client = crate::s3_client::S3Client::default(); + + mock_s3_client + .expect_get_text_file() + .with( + predicate::eq("near-lake-data-mainnet".to_string()), + predicate::always(), + ) + .returning(move |_, _| { + Ok(crate::test_utils::generate_block_with_timestamp( + &chrono::Utc::now().format("%Y-%m-%d").to_string(), + )) }); - mock_delta_lake_client - .expect_list_matching_block_heights() + + let mut mock_graphql_client = crate::graphql::client::GraphQLClient::default(); + + mock_graphql_client + .expect_get_bitmaps_exact() .returning(|_, _| Ok(vec![])); + let mock_reciever_blocks_processor = + ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); let mock_redis = crate::redis::RedisClient::default(); let mut mock_lake_s3_client = crate::lake_s3_client::SharedLakeS3Client::default(); @@ -221,7 +229,7 @@ mod tests { BlockStreamerService::new( std::sync::Arc::new(mock_redis), - std::sync::Arc::new(mock_delta_lake_client), + std::sync::Arc::new(mock_reciever_blocks_processor), mock_lake_s3_client, ) } diff --git a/block-streamer/src/server/mod.rs b/block-streamer/src/server/mod.rs index 0159550d4..8d15a1b2a 100644 --- a/block-streamer/src/server/mod.rs +++ b/block-streamer/src/server/mod.rs @@ -7,15 +7,18 @@ pub mod blockstreamer { pub async fn init( port: &str, redis: std::sync::Arc, - delta_lake_client: std::sync::Arc, + receiver_blocks_processor: std::sync::Arc, lake_s3_client: crate::lake_s3_client::SharedLakeS3Client, ) -> anyhow::Result<()> { let addr = format!("0.0.0.0:{}", port).parse()?; tracing::info!("Starting gRPC server on {}", addr); - let block_streamer_service = - block_streamer_service::BlockStreamerService::new(redis, delta_lake_client, lake_s3_client); + let block_streamer_service = block_streamer_service::BlockStreamerService::new( + redis, + receiver_blocks_processor, + lake_s3_client, + ); let block_streamer_server = blockstreamer::block_streamer_server::BlockStreamerServer::new(block_streamer_service); diff --git a/block-streamer/src/test_utils.rs b/block-streamer/src/test_utils.rs index a4af388e8..0039cd616 100644 --- a/block-streamer/src/test_utils.rs +++ b/block-streamer/src/test_utils.rs @@ -1,5 +1,6 @@ use aws_smithy_runtime::client::http::test_util::{ReplayEvent, StaticReplayClient}; use aws_smithy_types::body::SdkBody; +use chrono::TimeZone; use near_lake_framework::near_indexer_primitives; fn generate_replay_events_for_block(block_height: u64) -> Vec { @@ -173,3 +174,63 @@ pub fn get_streamer_message(block_height: u64) -> near_indexer_primitives::Strea near_indexer_primitives::StreamerMessage { block, shards } } + +pub fn utc_date_time_from_date_string(date: &str) -> chrono::DateTime { + let naive_date_time: chrono::NaiveDateTime = + chrono::NaiveDate::parse_from_str(date, "%Y-%m-%d") + .unwrap() + .and_hms_opt(0, 0, 0) + .unwrap(); + chrono::TimeZone::from_utc_datetime(&chrono::Utc, &naive_date_time) +} + +pub fn generate_block_with_timestamp(date: &str) -> String { + let naive_date = chrono::NaiveDate::parse_from_str(date, "%Y-%m-%d") + .unwrap() + .and_hms_opt(0, 0, 0) + .unwrap(); + + let date_time_utc = chrono::Utc.from_utc_datetime(&naive_date).timestamp() * 1_000_000_000; + + format!( + r#"{{ + "author": "someone", + "header": {{ + "approvals": [], + "block_merkle_root": "ERiC7AJ2zbVz1HJHThR5NWDDN9vByhwdjcVfivmpY5B", + "block_ordinal": 92102682, + "challenges_result": [], + "challenges_root": "11111111111111111111111111111111", + "chunk_headers_root": "MDiJxDyvUQaZRKmUwa5jgQuV6XjwVvnm4tDrajCxwvz", + "chunk_mask": [], + "chunk_receipts_root": "n84wEo7kTKTCJsyqBZ2jndhjrAMeJAXMwKvnJR7vCuy", + "chunk_tx_root": "D8j64GMKBMvUfvnuHtWUyDtMHM5mJ2pA4G5VmYYJvo5G", + "chunks_included": 4, + "epoch_id": "2RMQiomr6CSSwUWpmB62YohxHbfadrHfcsaa3FVb4J9x", + "epoch_sync_data_hash": null, + "gas_price": "100000000", + "hash": "FA1z9RVm9fX3g3mgP3NToZGwWeeXYn8bvZs4nwwTgCpD", + "height": 102162333, + "last_ds_final_block": "Ax2a3MSYuv2hgybnCbpNJMdYmPrHDHdA2hHTUrBkD915", + "last_final_block": "8xkwjn6Lb6UhMBhxcbVQBf3318GafkdaXoHA8Jako1nn", + "latest_protocol_version": 62, + "next_bp_hash": "dmW84aEj2iVJMLwJodJwTfAyeA1LJaHEthvnoAsvTPt", + "next_epoch_id": "C9TDDYthANoduoTBZS7WYDsBSe9XCm4M2F9hRoVXVXWY", + "outcome_root": "6WxzWLVp4b4bFbxHzu18apVfXLvHGKY7CHoqD2Eq3TFJ", + "prev_hash": "Ax2a3MSYuv2hgybnCbpNJMdYmPrHDHdA2hHTUrBkD915", + "prev_height": 102162332, + "prev_state_root": "Aq2ndkyDiwroUWN69Ema9hHtnr6dPHoEBRNyfmd8v4gB", + "random_value": "7ruuMyDhGtTkYaCGYMy7PirPiM79DXa8GhVzQW1pHRoz", + "rent_paid": "0", + "signature": "ed25519:5gYYaWHkAEK5etB8tDpw7fmehkoYSprUxKPygaNqmhVDFCMkA1n379AtL1BBkQswLAPxWs1BZvypFnnLvBtHRknm", + "timestamp": 1695921400989555700, + "timestamp_nanosec": "{}", + "total_supply": "1155783047679681223245725102954966", + "validator_proposals": [], + "validator_reward": "0" + }}, + "chunks": [] + }}"#, + date_time_utc + ) +} From 8c40b2ecc5b4831b176e5d703276ad49d5edeb99 Mon Sep 17 00:00:00 2001 From: Morgan McCauley Date: Tue, 9 Jul 2024 16:29:46 +1200 Subject: [PATCH 02/14] test: Cancel block_stream task to workaround infinite lake loop (#856) `near-lake-framework` will infinitely retry, making our tests infinitely hang. This PR monitors the `last_processed_ block`, and cancels the task from the outside when the last desired block is reached. --- block-streamer/src/block_stream.rs | 113 +++++++++++++++++++---------- 1 file changed, 73 insertions(+), 40 deletions(-) diff --git a/block-streamer/src/block_stream.rs b/block-streamer/src/block_stream.rs index e52f8d237..1a1eab714 100644 --- a/block-streamer/src/block_stream.rs +++ b/block-streamer/src/block_stream.rs @@ -346,11 +346,9 @@ mod tests { use mockall::predicate; use near_lake_framework::s3_client::GetObjectBytesError; + use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::Arc; - // FIX: near lake framework now infinitely retires - we need a way to stop it to allow the test - // to finish - #[ignore] #[tokio::test] async fn adds_matching_blocks_from_bitmap_and_lake() { let contract_filter = "queryapi.dataplatform.near"; @@ -394,11 +392,11 @@ mod tests { ) .returning(|_, _| { Ok(vec![ - crate::graphql::client::get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps { - first_block_height: 107503702, - bitmap: "oA==".to_string(), - } -]) + crate::graphql::client::get_bitmaps_exact::GetBitmapsExactDataplatformNearReceiverBlocksBitmaps { + first_block_height: 107503702, + bitmap: "oA==".to_string(), + } + ]) }); mock_graphql_client @@ -408,6 +406,9 @@ mod tests { let mock_reciever_blocks_processor = ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); + let last_processed_block_height = Arc::new(AtomicU64::new(0)); + let last_processed_block_height_clone = last_processed_block_height.clone(); + let mut mock_redis = crate::redis::RedisClient::default(); mock_redis .expect_publish_block() @@ -425,7 +426,10 @@ mod tests { predicate::always(), predicate::in_iter([107503702, 107503703, 107503704, 107503705]), ) - .returning(|_, _| Ok(())) + .returning(move |_, height| { + last_processed_block_height_clone.store(height, Ordering::Relaxed); + Ok(()) + }) .times(4); mock_redis .expect_cache_streamer_message() @@ -448,23 +452,33 @@ mod tests { }, }; - start_block_stream( - 91940840, - &indexer_config, - std::sync::Arc::new(mock_redis), - std::sync::Arc::new(mock_reciever_blocks_processor), - mock_lake_s3_client, - &ChainId::Mainnet, + let mut block_stream = BlockStream::new( + indexer_config, + ChainId::Mainnet, 1, "stream key".to_string(), - ) - .await - .unwrap(); + ); + + block_stream + .start( + 91940840, + std::sync::Arc::new(mock_redis), + std::sync::Arc::new(mock_reciever_blocks_processor), + mock_lake_s3_client, + ) + .unwrap(); + + loop { + if last_processed_block_height.load(Ordering::Relaxed) >= 107503705 { + break; + } + + tokio::time::sleep(std::time::Duration::from_millis(10)).await; + } + + block_stream.cancel().await.unwrap(); } - // FIX: near lake framework now infinitely retires - we need a way to stop it to allow the test - // to finish - #[ignore] #[tokio::test] async fn skips_caching_of_lake_block_over_stream_size_limit() { let mut mock_lake_s3_client = crate::lake_s3_client::SharedLakeS3Client::default(); @@ -479,7 +493,7 @@ mod tests { mock_lake_s3_client .expect_list_common_prefixes() - .returning(|_, _| Ok(vec![])); + .returning(|_, _| Ok(vec![107503704.to_string(), 107503705.to_string()])); let mut mock_s3_client = crate::s3_client::S3Client::default(); @@ -504,6 +518,9 @@ mod tests { let mock_reciever_blocks_processor = ReceiverBlocksProcessor::new(mock_graphql_client, mock_s3_client); + let last_processed_block_height = Arc::new(AtomicU64::new(0)); + let last_processed_block_height_clone = last_processed_block_height.clone(); + let mut mock_redis_client = crate::redis::RedisClient::default(); mock_redis_client .expect_publish_block() @@ -521,7 +538,10 @@ mod tests { predicate::always(), predicate::in_iter([107503704, 107503705]), ) - .returning(|_, _| Ok(())) + .returning(move |_, height| { + last_processed_block_height_clone.store(height, Ordering::Relaxed); + Ok(()) + }) .times(2); mock_redis_client .expect_cache_streamer_message() @@ -544,18 +564,31 @@ mod tests { }, }; - start_block_stream( - 107503704, - &indexer_config, - std::sync::Arc::new(mock_redis_client), - std::sync::Arc::new(mock_reciever_blocks_processor), - mock_lake_s3_client, - &ChainId::Mainnet, + let mut block_stream = BlockStream::new( + indexer_config, + ChainId::Mainnet, 1, "stream key".to_string(), - ) - .await - .unwrap(); + ); + + block_stream + .start( + 107503704, + Arc::new(mock_redis_client), + Arc::new(mock_reciever_blocks_processor), + mock_lake_s3_client, + ) + .unwrap(); + + loop { + if last_processed_block_height.load(Ordering::Relaxed) >= 107503705 { + break; + } + + tokio::time::sleep(std::time::Duration::from_millis(10)).await; + } + + block_stream.cancel().await.unwrap(); } #[tokio::test] @@ -589,8 +622,8 @@ mod tests { process_bitmap_indexer_blocks( 107503704, - std::sync::Arc::new(mock_reciever_blocks_processor), - std::sync::Arc::new(mock_redis_client), + Arc::new(mock_reciever_blocks_processor), + Arc::new(mock_redis_client), &indexer_config, "stream key".to_string(), ) @@ -629,8 +662,8 @@ mod tests { process_bitmap_indexer_blocks( 107503704, - std::sync::Arc::new(mock_reciever_blocks_processor), - std::sync::Arc::new(mock_redis_client), + Arc::new(mock_reciever_blocks_processor), + Arc::new(mock_redis_client), &indexer_config, "stream key".to_string(), ) @@ -669,8 +702,8 @@ mod tests { process_bitmap_indexer_blocks( 107503704, - std::sync::Arc::new(mock_reciever_blocks_processor), - std::sync::Arc::new(mock_redis_client), + Arc::new(mock_reciever_blocks_processor), + Arc::new(mock_redis_client), &indexer_config, "stream key".to_string(), ) From 680c6c98402eac378b2abfb564efb0799b94ef2b Mon Sep 17 00:00:00 2001 From: Morgan McCauley Date: Wed, 10 Jul 2024 08:32:12 +1200 Subject: [PATCH 03/14] refactor: Unify logic for generating Redis keys (#807) Both the `IndexerState` and `IndexerConfig` structs are used individually to access Redis, and therefore have duplicate code for generating the required keys. This is problematic for the following reasons: 1. Redis access is limited to these structs, anything else requiring access needs to duplicate the logic again 2. Updates need to be reflected across both structs, creating more room for error This PR creates a common Redis `KeyProvider` interface/trait for accessing Indexer Redis data/keys. Now the required structs, i.e. `IndexerState` and `IndexerConfig`, can implement this trait, and automatically get access to the methods which generate the keys. Also did some minor clean up, removing the old Coordinator migration code. --- coordinator/src/handlers/block_streams.rs | 1 + coordinator/src/handlers/executors.rs | 1 + coordinator/src/indexer_config.rs | 24 ++--- coordinator/src/indexer_state.rs | 80 ++------------ coordinator/src/main.rs | 2 - coordinator/src/redis.rs | 124 ++++++++++++---------- coordinator/src/registry.rs | 2 + coordinator/src/synchroniser.rs | 22 ++-- 8 files changed, 101 insertions(+), 155 deletions(-) diff --git a/coordinator/src/handlers/block_streams.rs b/coordinator/src/handlers/block_streams.rs index a2315c171..f88a412d5 100644 --- a/coordinator/src/handlers/block_streams.rs +++ b/coordinator/src/handlers/block_streams.rs @@ -12,6 +12,7 @@ use tonic::transport::channel::Channel; use tonic::Request; use crate::indexer_config::IndexerConfig; +use crate::redis::KeyProvider; use crate::utils::exponential_retry; #[cfg(not(test))] diff --git a/coordinator/src/handlers/executors.rs b/coordinator/src/handlers/executors.rs index 28717b924..686164048 100644 --- a/coordinator/src/handlers/executors.rs +++ b/coordinator/src/handlers/executors.rs @@ -9,6 +9,7 @@ use tonic::transport::channel::Channel; use tonic::Request; use crate::indexer_config::IndexerConfig; +use crate::redis::KeyProvider; use crate::utils::exponential_retry; #[cfg(not(test))] diff --git a/coordinator/src/indexer_config.rs b/coordinator/src/indexer_config.rs index 78220c76e..7d199ee7c 100644 --- a/coordinator/src/indexer_config.rs +++ b/coordinator/src/indexer_config.rs @@ -1,6 +1,8 @@ use near_primitives::types::AccountId; use registry_types::{Rule, StartBlock}; +use crate::redis::KeyProvider; + #[derive(Debug, Clone, PartialEq)] pub struct IndexerConfig { pub account_id: AccountId, @@ -13,6 +15,16 @@ pub struct IndexerConfig { pub created_at_block_height: u64, } +impl KeyProvider for IndexerConfig { + fn account_id(&self) -> String { + self.account_id.to_string() + } + + fn function_name(&self) -> String { + self.function_name.clone() + } +} + #[cfg(test)] impl Default for IndexerConfig { fn default() -> Self { @@ -37,18 +49,6 @@ impl IndexerConfig { format!("{}/{}", self.account_id, self.function_name) } - pub fn get_redis_stream_key(&self) -> String { - format!("{}:block_stream", self.get_full_name()) - } - - pub fn get_last_published_block_key(&self) -> String { - format!("{}:last_published_block", self.get_full_name()) - } - - pub fn get_state_key(&self) -> String { - format!("{}:state", self.get_full_name()) - } - pub fn get_registry_version(&self) -> u64 { self.updated_at_block_height .unwrap_or(self.created_at_block_height) diff --git a/coordinator/src/indexer_state.rs b/coordinator/src/indexer_state.rs index b6cb20be5..2539e06a2 100644 --- a/coordinator/src/indexer_state.rs +++ b/coordinator/src/indexer_state.rs @@ -4,7 +4,7 @@ use anyhow::Context; use near_primitives::types::AccountId; use crate::indexer_config::IndexerConfig; -use crate::redis::RedisClient; +use crate::redis::{KeyProvider, RedisClient}; #[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)] pub enum ProvisionedState { @@ -15,14 +15,6 @@ pub enum ProvisionedState { Failed, } -#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)] -pub struct OldIndexerState { - pub account_id: AccountId, - pub function_name: String, - pub block_stream_synced_at: Option, - pub enabled: bool, -} - #[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)] pub struct IndexerState { pub account_id: AccountId, @@ -32,16 +24,13 @@ pub struct IndexerState { pub provisioned_state: ProvisionedState, } -// FIX `IndexerConfig` does not exist after an Indexer is deleted, and we need a way to -// construct the state key without it. But, this isn't ideal as we now have two places which -// define this key - we need to consolidate these somehow. -impl IndexerState { - pub fn get_state_key(&self) -> String { - format!("{}/{}:state", self.account_id, self.function_name) +impl KeyProvider for IndexerState { + fn account_id(&self) -> String { + self.account_id.to_string() } - pub fn get_redis_stream_key(&self) -> String { - format!("{}/{}:block_stream", self.account_id, self.function_name) + fn function_name(&self) -> String { + self.function_name.clone() } } @@ -60,39 +49,6 @@ impl IndexerStateManagerImpl { Self { redis_client } } - pub async fn migrate(&self) -> anyhow::Result<()> { - let raw_states = self.redis_client.list_indexer_states().await?; - - for raw_state in raw_states { - if let Ok(state) = serde_json::from_str::(&raw_state) { - tracing::info!( - "{}/{} already migrated, skipping", - state.account_id, - state.function_name - ); - continue; - } - - tracing::info!("Migrating {}", raw_state); - - let old_state: OldIndexerState = serde_json::from_str(&raw_state)?; - - let state = IndexerState { - account_id: old_state.account_id, - function_name: old_state.function_name, - block_stream_synced_at: old_state.block_stream_synced_at, - enabled: old_state.enabled, - provisioned_state: ProvisionedState::Provisioned, - }; - - self.redis_client - .set(state.get_state_key(), serde_json::to_string(&state)?) - .await?; - } - - Ok(()) - } - fn get_default_state(&self, indexer_config: &IndexerConfig) -> IndexerState { IndexerState { account_id: indexer_config.account_id.clone(), @@ -233,28 +189,6 @@ mod tests { use mockall::predicate; use registry_types::{Rule, StartBlock, Status}; - #[tokio::test] - async fn migrate() { - let config = IndexerConfig::default(); - let mut mock_redis_client = RedisClient::default(); - mock_redis_client - .expect_list_indexer_states() - .returning(|| Ok(vec![serde_json::json!({ "account_id": "morgs.near", "function_name": "test", "block_stream_synced_at": 200, "enabled": true }).to_string()])) - .once(); - mock_redis_client - .expect_set::() - .with( - predicate::eq(config.get_state_key()), - predicate::eq("{\"account_id\":\"morgs.near\",\"function_name\":\"test\",\"block_stream_synced_at\":200,\"enabled\":true,\"provisioned_state\":\"Provisioned\"}".to_string()), - ) - .returning(|_, _| Ok(())) - .once(); - - let indexer_manager = IndexerStateManagerImpl::new(mock_redis_client); - - indexer_manager.migrate().await.unwrap(); - } - #[tokio::test] async fn list_indexer_states() { let mut mock_redis_client = RedisClient::default(); @@ -300,7 +234,7 @@ mod tests { )) }); redis_client - .expect_set_indexer_state() + .expect_set_indexer_state::() .with( predicate::always(), predicate::eq("{\"account_id\":\"morgs.near\",\"function_name\":\"test\",\"block_stream_synced_at\":123,\"enabled\":false,\"provisioned_state\":\"Provisioned\"}".to_string()), diff --git a/coordinator/src/main.rs b/coordinator/src/main.rs index a437e4187..6d55aa780 100644 --- a/coordinator/src/main.rs +++ b/coordinator/src/main.rs @@ -77,8 +77,6 @@ async fn main() -> anyhow::Result<()> { async move { server::init(grpc_port, indexer_state_manager, registry).await } }); - indexer_state_manager.migrate().await?; - loop { tokio::try_join!(synchroniser.sync(), sleep(CONTROL_LOOP_THROTTLE_SECONDS))?; } diff --git a/coordinator/src/redis.rs b/coordinator/src/redis.rs index 191b92f91..2f64e6a32 100644 --- a/coordinator/src/redis.rs +++ b/coordinator/src/redis.rs @@ -5,7 +5,26 @@ use std::fmt::Debug; use anyhow::Context; use redis::{aio::ConnectionManager, FromRedisValue, ToRedisArgs}; -use crate::{indexer_config::IndexerConfig, indexer_state::IndexerState}; +pub trait KeyProvider { + fn account_id(&self) -> String; + fn function_name(&self) -> String; + + fn prefix(&self) -> String { + format!("{}/{}", self.account_id(), self.function_name()) + } + + fn get_redis_stream_key(&self) -> String { + format!("{}:block_stream", self.prefix()) + } + + fn get_last_published_block_key(&self) -> String { + format!("{}:last_published_block", self.prefix()) + } + + fn get_state_key(&self) -> String { + format!("{}:state", self.prefix()) + } +} #[cfg(test)] pub use MockRedisClientImpl as RedisClient; @@ -119,60 +138,48 @@ impl RedisClientImpl { .context(format!("SADD {set:?} {member:?}")) } - pub async fn exists(&self, key: K) -> anyhow::Result + pub async fn get_last_published_block

(&self, key_provider: &P) -> anyhow::Result> where - K: ToRedisArgs + Debug + Send + Sync + 'static, + P: KeyProvider + 'static, { - tracing::debug!("EXISTS {key:?}"); - - redis::cmd("EXISTS") - .arg(&key) - .query_async(&mut self.connection.clone()) + self.get::<_, u64>(key_provider.get_last_published_block_key()) .await - .context(format!("EXISTS {key:?}")) - } - - pub async fn indexer_states_set_exists(&self) -> anyhow::Result { - self.exists(Self::INDEXER_STATES_SET).await } - pub async fn get_last_published_block( - &self, - indexer_config: &IndexerConfig, - ) -> anyhow::Result> { - self.get::<_, u64>(indexer_config.get_last_published_block_key()) - .await - } - - pub async fn clear_block_stream(&self, indexer_config: &IndexerConfig) -> anyhow::Result<()> { - let stream_key = indexer_config.get_redis_stream_key(); + pub async fn clear_block_stream

(&self, key_provider: &P) -> anyhow::Result<()> + where + P: KeyProvider + 'static, + { + let stream_key = key_provider.get_redis_stream_key(); self.del(stream_key.clone()) .await .context(format!("Failed to clear Redis Stream: {}", stream_key)) } - pub async fn get_indexer_state( - &self, - indexer_config: &IndexerConfig, - ) -> anyhow::Result> { - self.get(indexer_config.get_state_key()).await + pub async fn get_indexer_state

(&self, key_provider: &P) -> anyhow::Result> + where + P: KeyProvider + 'static, + { + self.get(key_provider.get_state_key()).await } - pub async fn set_indexer_state( - &self, - indexer_config: &IndexerConfig, - state: String, - ) -> anyhow::Result<()> { - self.set(indexer_config.get_state_key(), state).await?; + pub async fn set_indexer_state

(&self, key_provider: &P, state: String) -> anyhow::Result<()> + where + P: KeyProvider + 'static, + { + self.set(key_provider.get_state_key(), state).await?; - self.sadd(Self::INDEXER_STATES_SET, indexer_config.get_state_key()) + self.sadd(Self::INDEXER_STATES_SET, key_provider.get_state_key()) .await } - pub async fn delete_indexer_state(&self, state: &IndexerState) -> anyhow::Result<()> { - self.del(state.get_state_key()).await?; + pub async fn delete_indexer_state

(&self, key_provider: &P) -> anyhow::Result<()> + where + P: KeyProvider + 'static, + { + self.del(key_provider.get_state_key()).await?; - self.srem(Self::INDEXER_STATES_SET, state.get_state_key()) + self.srem(Self::INDEXER_STATES_SET, key_provider.get_state_key()) .await } @@ -202,30 +209,34 @@ mockall::mock! { pub RedisClientImpl { pub async fn connect(redis_url: &str) -> anyhow::Result; - pub async fn get_indexer_state(&self, indexer_config: &IndexerConfig) -> anyhow::Result>; + pub async fn get_indexer_state

(&self, key_provider: &P) -> anyhow::Result> + where P: KeyProvider + 'static; - pub async fn set_indexer_state( + pub async fn set_indexer_state

( &self, - indexer_config: &IndexerConfig, + key_provider: &P, state: String, - ) -> anyhow::Result<()>; + ) -> anyhow::Result<()> + where P: KeyProvider + 'static; - pub async fn get_last_published_block( + pub async fn get_last_published_block

( &self, - indexer_config: &IndexerConfig, - ) -> anyhow::Result>; + key_provider: &P, + ) -> anyhow::Result> + where P: KeyProvider + 'static; - pub async fn clear_block_stream(&self, indexer_config: &IndexerConfig) -> anyhow::Result<()>; + pub async fn clear_block_stream

(&self, key_provider: &P) -> anyhow::Result<()> + where P: KeyProvider + 'static; pub async fn get(&self, key: T) -> anyhow::Result> - where - T: ToRedisArgs + Debug + Send + Sync + 'static, - U: FromRedisValue + Debug + 'static; + where + T: ToRedisArgs + Debug + Send + Sync + 'static, + U: FromRedisValue + Debug + 'static; pub async fn set(&self, key: K, value: V) -> anyhow::Result<()> - where - K: ToRedisArgs + Debug + Send + Sync + 'static, - V: ToRedisArgs + Debug + Send + Sync + 'static; + where + K: ToRedisArgs + Debug + Send + Sync + 'static, + V: ToRedisArgs + Debug + Send + Sync + 'static; pub async fn del(&self, key: K) -> anyhow::Result<()> where @@ -234,13 +245,14 @@ mockall::mock! { pub async fn indexer_states_set_exists(&self) -> anyhow::Result; pub async fn sadd(&self, set: S, value: V) -> anyhow::Result<()> - where - S: ToRedisArgs + Debug + Send + Sync + 'static, - V: ToRedisArgs + Debug + Send + Sync + 'static; + where + S: ToRedisArgs + Debug + Send + Sync + 'static, + V: ToRedisArgs + Debug + Send + Sync + 'static; pub async fn list_indexer_states(&self) -> anyhow::Result>; - pub async fn delete_indexer_state(&self, state: &IndexerState) -> anyhow::Result<()>; + pub async fn delete_indexer_state

(&self, key_provider: &P) -> anyhow::Result<()> + where P: KeyProvider + 'static; } impl Clone for RedisClientImpl { diff --git a/coordinator/src/registry.rs b/coordinator/src/registry.rs index 64175d58c..d3cb87397 100644 --- a/coordinator/src/registry.rs +++ b/coordinator/src/registry.rs @@ -23,6 +23,7 @@ impl IndexerRegistry { Self(slice.iter().cloned().collect()) } + #[cfg(test)] pub fn new() -> Self { Self(HashMap::new()) } @@ -34,6 +35,7 @@ impl IndexerRegistry { } } + #[cfg(test)] pub fn get(&self, account_id: &AccountId, function_name: &str) -> Option<&IndexerConfig> { self.0.get(account_id)?.get(function_name) } diff --git a/coordinator/src/synchroniser.rs b/coordinator/src/synchroniser.rs index e464e241f..bf362bc5d 100644 --- a/coordinator/src/synchroniser.rs +++ b/coordinator/src/synchroniser.rs @@ -1,17 +1,13 @@ use registry_types::StartBlock; use tracing::instrument; -use crate::{ - handlers::{ - block_streams::{BlockStreamsHandler, StreamInfo}, - data_layer::{DataLayerHandler, TaskStatus}, - executors::{ExecutorInfo, ExecutorsHandler}, - }, - indexer_config::IndexerConfig, - indexer_state::{IndexerState, IndexerStateManager, ProvisionedState}, - redis::RedisClient, - registry::Registry, -}; +use crate::handlers::block_streams::{BlockStreamsHandler, StreamInfo}; +use crate::handlers::data_layer::{DataLayerHandler, TaskStatus}; +use crate::handlers::executors::{ExecutorInfo, ExecutorsHandler}; +use crate::indexer_config::IndexerConfig; +use crate::indexer_state::{IndexerState, IndexerStateManager, ProvisionedState}; +use crate::redis::{KeyProvider, RedisClient}; +use crate::registry::Registry; #[allow(clippy::large_enum_variant)] #[derive(Debug)] @@ -1050,7 +1046,9 @@ mod test { let last_published_block = 1; let mut redis_client = RedisClient::default(); - redis_client.expect_clear_block_stream().never(); + redis_client + .expect_clear_block_stream::() + .never(); redis_client .expect_get_last_published_block() .with(eq(config.clone())) From 889fba02c798691eae09dbfb2c203016fca20ced Mon Sep 17 00:00:00 2001 From: Kevin Zhang <42101107+Kevin101Zhang@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:02:37 -0400 Subject: [PATCH 04/14] fix: remove the root cause of multiple rerenders on editor lifecycle (#857) Cause of multiple rerendering on page load --- frontend/widgets/src/QueryApi.Dashboard.jsx | 24 --------------------- 1 file changed, 24 deletions(-) diff --git a/frontend/widgets/src/QueryApi.Dashboard.jsx b/frontend/widgets/src/QueryApi.Dashboard.jsx index 0686fa078..8515ac46f 100644 --- a/frontend/widgets/src/QueryApi.Dashboard.jsx +++ b/frontend/widgets/src/QueryApi.Dashboard.jsx @@ -17,30 +17,6 @@ State.init({ selected_account: undefined, }); -Near.asyncView(`${REPL_REGISTRY_CONTRACT_ID}`, "list_all").then((data) => { - const indexers = []; - const total_indexers = 0; - Object.keys(data).forEach((accountId) => { - Object.keys(data[accountId]).forEach((functionName) => { - indexers.push({ - accountId: accountId, - indexerName: functionName, - }); - total_indexers += 1; - }); - }); - - let my_indexers = indexers.filter( - (indexer) => indexer.accountId === accountId - ); - - State.update({ - my_indexers: my_indexers, - all_indexers: indexers, - totalIndexers: total_indexers, - }); -}); - const Subheading = styled.h2` display: block; margin: 0; From 1318cb63c7b9b0c67119db27a6a6cae76fcea9f5 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <42101107+Kevin101Zhang@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:29:13 -0400 Subject: [PATCH 05/14] feat: Enhance Schema Error Visualization with New Icons (#855) Optimized Editor Lifecycle methods and removed the 'janky' Alert that would insert itself between the developer tools and Editor component in favor of a small icon that is in the fileswitcher. --- .../Common/Icons/AlertSquareIcon.js | 10 + .../Common/Icons/CheckMarkSquareIcon.js | 17 ++ .../Editor/EditorComponents/Editor.tsx | 250 +++++++----------- .../Editor/EditorComponents/FileSwitcher.jsx | 33 ++- .../Editor/EditorView/DeveloperToolsView.jsx | 37 +-- .../Editor/EditorView/EditorMenuView.jsx | 4 +- .../EditorMenuContainer.tsx | 26 +- .../src/contexts/IndexerDetailsContext.tsx | 109 +++++--- frontend/src/pages/query-api-editor/index.js | 28 +- frontend/src/utils/formatters.js | 12 +- frontend/src/utils/validators.ts | 12 +- 11 files changed, 278 insertions(+), 260 deletions(-) create mode 100644 frontend/src/components/Common/Icons/AlertSquareIcon.js create mode 100644 frontend/src/components/Common/Icons/CheckMarkSquareIcon.js diff --git a/frontend/src/components/Common/Icons/AlertSquareIcon.js b/frontend/src/components/Common/Icons/AlertSquareIcon.js new file mode 100644 index 000000000..b3df85803 --- /dev/null +++ b/frontend/src/components/Common/Icons/AlertSquareIcon.js @@ -0,0 +1,10 @@ +import React from 'react'; + +const AlertSquareIcon = () => { + return ( +

+ ! +
+ ); +}; +export default AlertSquareIcon; diff --git a/frontend/src/components/Common/Icons/CheckMarkSquareIcon.js b/frontend/src/components/Common/Icons/CheckMarkSquareIcon.js new file mode 100644 index 000000000..2b25571aa --- /dev/null +++ b/frontend/src/components/Common/Icons/CheckMarkSquareIcon.js @@ -0,0 +1,17 @@ +import React from 'react'; + +const CheckMarkSquareIcon = () => { + return ( +
+ + + +
+ ); +}; + +export default CheckMarkSquareIcon; diff --git a/frontend/src/components/Editor/EditorComponents/Editor.tsx b/frontend/src/components/Editor/EditorComponents/Editor.tsx index c3a33c0a3..4daf53648 100644 --- a/frontend/src/components/Editor/EditorComponents/Editor.tsx +++ b/frontend/src/components/Editor/EditorComponents/Editor.tsx @@ -1,13 +1,11 @@ import { request, useInitialPayload } from 'near-social-bridge'; -import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'; import type { ReactElement } from 'react'; +import React, { useContext, useEffect, useMemo, useRef, useState } from 'react'; import { Alert } from 'react-bootstrap'; import { useDebouncedCallback } from 'use-debounce'; import primitives from '!!raw-loader!./primitives.d.ts'; import { - CODE_FORMATTING_ERROR_MESSAGE, - CODE_GENERAL_ERROR_MESSAGE, FORMATTING_ERROR_TYPE, SCHEMA_FORMATTING_ERROR_MESSAGE, SCHEMA_TYPE_GENERATION_ERROR_MESSAGE, @@ -15,7 +13,6 @@ import { } from '@/constants/Strings'; import { IndexerDetailsContext } from '@/contexts/IndexerDetailsContext'; import { useModal } from '@/contexts/ModalContext'; -import { InfoModal } from '@/core/InfoModal'; import { defaultCode, defaultSchema, defaultSchemaTypes, formatIndexingCode, formatSQL } from '@/utils/formatters'; import { getLatestBlockHeight } from '@/utils/getLatestBlockHeight'; import IndexerRunner from '@/utils/indexerRunner'; @@ -30,24 +27,25 @@ import { FileSwitcher } from './FileSwitcher'; import { GlyphContainer } from './GlyphContainer'; import ResizableLayoutEditor from './ResizableLayoutEditor'; +declare const monaco: any; const INDEXER_TAB_NAME = 'indexer.js'; const SCHEMA_TAB_NAME = 'schema.sql'; -declare const monaco: any; +const originalSQLCode = formatSQL(defaultSchema); +const originalIndexingCode = formatIndexingCode(defaultCode); +const pgSchemaTypeGen = new PgSchemaTypeGen(); const Editor: React.FC = (): ReactElement => { - const { indexerDetails, debugMode, isCreateNewIndexer } = useContext(IndexerDetailsContext); + const { indexerDetails, isCreateNewIndexer } = useContext(IndexerDetailsContext); + const storageManager = useMemo(() => { if (indexerDetails.accountId && indexerDetails.indexerName) { return new QueryAPIStorageManager(indexerDetails.accountId, indexerDetails.indexerName); } else return null; }, [indexerDetails.accountId, indexerDetails.indexerName]); - const [error, setError] = useState(); + const [indexerError, setIndexerError] = useState(); + const [schemaError, setSchemaError] = useState(); const [fileName, setFileName] = useState(INDEXER_TAB_NAME); - - const [originalSQLCode, setOriginalSQLCode] = useState(formatSQL(defaultSchema)); - const [originalIndexingCode, setOriginalIndexingCode] = useState(formatIndexingCode(defaultCode)); - const [indexingCode, setIndexingCode] = useState(originalIndexingCode); const [schema, setSchema] = useState(originalSQLCode); const [cursorPosition, setCursorPosition] = useState<{ lineNumber: number; column: number }>({ @@ -61,10 +59,9 @@ const Editor: React.FC = (): ReactElement => { const initialHeights = storageManager ? storageManager.getDebugList() || [] : []; const [heights, setHeights] = useState(initialHeights); - const [debugModeInfoDisabled, setDebugModeInfoDisabled] = useState(false); const [diffView, setDiffView] = useState(false); const [blockView, setBlockView] = useState(false); - const { openModal, showModal, data, message, hideModal } = useModal(); + const { showModal } = useModal(); const [isExecutingIndexerFunction, setIsExecutingIndexerFunction] = useState(false); const { height, currentUserAccountId }: { height?: number; currentUserAccountId?: string } = @@ -80,69 +77,60 @@ const Editor: React.FC = (): ReactElement => { }; const indexerRunner = useMemo(() => new IndexerRunner(handleLog), []); - const pgSchemaTypeGen = new PgSchemaTypeGen(); const disposableRef = useRef(null); const monacoEditorRef = useRef(null); - const parseGlyphError = ( - error?: { message: string }, - line?: { start: { line: number; column: number }; end: { line: number; column: number } }, - ) => { - const { line: startLine, column: startColumn } = line?.start || { line: 1, column: 1 }; - const { line: endLine, column: endColumn } = line?.end || { line: 1, column: 1 }; - const displayedError = error?.message || 'No Errors'; - - monacoEditorRef.current.deltaDecorations( - [decorations], - [ - { - range: new monaco.Range(startLine, startColumn, endLine, endColumn), - options: { - isWholeLine: true, - glyphMarginClassName: error ? 'glyphError' : 'glyphSuccess', - glyphMarginHoverMessage: { value: displayedError }, - }, - }, - ], - ); - }; - const debouncedValidateSQLSchema = useDebouncedCallback((_schema: string) => { const { error, location } = validateSQLSchema(_schema); error ? parseGlyphError(error as any, location as any) : parseGlyphError(); - return; + schemaErrorHandler(error); }, 500); const debouncedValidateCode = useDebouncedCallback((_code: string) => { - const { error: codeError } = validateJSCode(_code); - codeError ? setError(CODE_FORMATTING_ERROR_MESSAGE) : setError(undefined); + const { error } = validateJSCode(_code); + console.log(error); + indexerErrorHandler(error); }, 500); + const schemaErrorHandler = (schemaError: any): void => { + if (schemaError?.type === FORMATTING_ERROR_TYPE) setSchemaError(SCHEMA_FORMATTING_ERROR_MESSAGE); + if (schemaError?.type === TYPE_GENERATION_ERROR_TYPE) setSchemaError(SCHEMA_TYPE_GENERATION_ERROR_MESSAGE); + if (!schemaError) setSchemaError(undefined); + return; + }; + + const indexerErrorHandler = (indexerError: any): void => { + if (indexerError) setIndexerError(indexerError); + if (!indexerError) setIndexerError(undefined); + return; + }; + useEffect(() => { - if (indexerDetails.code != null) { + //* Load saved code from local storage if it exists else load code from context + const savedCode = storageManager?.getIndexerCode(); + if (savedCode) setIndexingCode(savedCode); + else if (indexerDetails.code) { const { data: formattedCode, error: codeError } = validateJSCode(indexerDetails.code); + indexerErrorHandler(codeError); + formattedCode && setIndexingCode(formattedCode); + } + //* Load saved cursor position from local storage if it exists else set cursor to start + const savedCursorPosition = storageManager?.getCursorPosition(); + if (savedCursorPosition) setCursorPosition(savedCursorPosition); - if (codeError) { - setError(CODE_FORMATTING_ERROR_MESSAGE); - } - - if (formattedCode) { - setOriginalIndexingCode(formattedCode); - setIndexingCode(formattedCode); - } + if (monacoEditorRef.current && fileName === INDEXER_TAB_NAME) { + monacoEditorRef.current.setPosition(savedCursorPosition || { lineNumber: 1, column: 1 }); + monacoEditorRef.current.focus(); } }, [indexerDetails.code]); useEffect(() => { - if (indexerDetails.schema != null) { + //* Load saved schema from local storage if it exists else load code from context + const savedSchema = storageManager?.getSchemaCode(); + if (savedSchema) setSchema(savedSchema); + else if (indexerDetails.schema) { const { data: formattedSchema, error: schemaError } = validateSQLSchema(indexerDetails.schema); - - if (schemaError?.type === FORMATTING_ERROR_TYPE) { - setError(SCHEMA_FORMATTING_ERROR_MESSAGE); - } else if (schemaError?.type === TYPE_GENERATION_ERROR_TYPE) { - setError(SCHEMA_TYPE_GENERATION_ERROR_MESSAGE); - } - + schemaErrorHandler(schemaError); formattedSchema && setSchema(formattedSchema); } }, [indexerDetails.schema]); @@ -151,35 +139,14 @@ const Editor: React.FC = (): ReactElement => { const { error: schemaError } = validateSQLSchema(schema); const { error: codeError } = validateJSCode(indexingCode); - if (schemaError?.type === FORMATTING_ERROR_TYPE) { - setError(SCHEMA_FORMATTING_ERROR_MESSAGE); - } else if (schemaError?.type === TYPE_GENERATION_ERROR_TYPE) { - setError(SCHEMA_TYPE_GENERATION_ERROR_MESSAGE); - } else if (codeError) setError(CODE_GENERAL_ERROR_MESSAGE); - else { - setError(undefined); - handleCodeGen(); + if (schemaError || codeError) { + if (schemaError) schemaErrorHandler(schemaError); + if (codeError) indexerErrorHandler(codeError); + return; } - if (fileName === SCHEMA_TAB_NAME) debouncedValidateSQLSchema(schema); - }, [fileName]); - useEffect(() => { - if (storageManager) { - const savedSchema = storageManager.getSchemaCode(); - const savedIndexingCode = storageManager.getIndexerCode(); - const savedCursorPosition = storageManager.getCursorPosition(); - - if (savedSchema) setSchema(savedSchema); - if (savedIndexingCode) setIndexingCode(savedIndexingCode); - if (savedCursorPosition) setCursorPosition(savedCursorPosition); - - if (monacoEditorRef.current && fileName === INDEXER_TAB_NAME) { - monacoEditorRef.current.setValue(savedIndexingCode || ''); - monacoEditorRef.current.setPosition(savedCursorPosition || { lineNumber: 1, column: 1 }); - monacoEditorRef.current.focus(); - } - } - }, [indexerDetails.accountId, indexerDetails.indexerName]); + handleCodeGen(); + }, [fileName]); useEffect(() => { cacheToLocal(); @@ -212,7 +179,7 @@ const Editor: React.FC = (): ReactElement => { storageManager.setIndexerCode(indexingCode); const newCursorPosition = monacoEditorRef.current.getPosition(); - storageManager.setCursorPosition(newCursorPosition); + if (fileName === INDEXER_TAB_NAME) storageManager.setCursorPosition(newCursorPosition); }; const handleCursorChange = () => { @@ -250,23 +217,9 @@ const Editor: React.FC = (): ReactElement => { const reformatAll = (indexingCode: string, schema: string) => { const { data: validatedCode, error: codeError } = validateJSCode(indexingCode); const { data: validatedSchema, error: schemaError } = validateSQLSchema(schema); - - let formattedCode = validatedCode; - let formattedSchema = validatedSchema; - if (codeError) { - formattedCode = indexingCode; - setError(CODE_FORMATTING_ERROR_MESSAGE); - } else if (schemaError?.type === FORMATTING_ERROR_TYPE) { - formattedSchema = schema; - setError(SCHEMA_FORMATTING_ERROR_MESSAGE); - } else if (schemaError?.type === TYPE_GENERATION_ERROR_TYPE) { - formattedSchema = schema; - setError(SCHEMA_TYPE_GENERATION_ERROR_MESSAGE); - } else { - setError(undefined); - } - - return { formattedCode, formattedSchema }; + indexerErrorHandler(codeError); + schemaErrorHandler(schemaError); + return { validatedCode, validatedSchema }; }; const handleCodeGen = () => { @@ -275,14 +228,37 @@ const Editor: React.FC = (): ReactElement => { attachTypesToMonaco(); // Just in case schema types have been updated but weren't added to monaco } catch (_error) { console.error('Error generating types for saved schema.\n', _error); - setError(SCHEMA_TYPE_GENERATION_ERROR_MESSAGE); + setSchemaError(SCHEMA_TYPE_GENERATION_ERROR_MESSAGE); } }; const handleFormating = () => { - const { formattedCode, formattedSchema } = reformatAll(indexingCode, schema); - formattedCode && setIndexingCode(formattedCode); - formattedSchema && setSchema(formattedSchema); + const { validatedCode, validatedSchema } = reformatAll(indexingCode, schema); + validatedCode && setIndexingCode(validatedCode); + validatedSchema && setSchema(validatedSchema); + }; + + const parseGlyphError = ( + error?: { message: string }, + line?: { start: { line: number; column: number }; end: { line: number; column: number } }, + ) => { + const { line: startLine, column: startColumn } = line?.start || { line: 1, column: 1 }; + const { line: endLine, column: endColumn } = line?.end || { line: 1, column: 1 }; + const displayedError = error?.message || ''; + + monacoEditorRef.current.deltaDecorations( + [decorations], + [ + { + range: new monaco.Range(startLine, startColumn, endLine, endColumn), + options: { + isWholeLine: true, + glyphMarginClassName: error ? 'glyphError' : 'glyphSuccess', + glyphMarginHoverMessage: { value: displayedError }, + }, + }, + ], + ); }; const handleEditorWillMount = (editor: any, monaco: any) => { @@ -298,14 +274,20 @@ const Editor: React.FC = (): ReactElement => { ); monacoEditorRef.current = editor; setDecorations(decorations); - - editor.setPosition(fileName === INDEXER_TAB_NAME ? cursorPosition : { lineNumber: 1, column: 1 }); - editor.focus(); } + editor.setPosition(fileName === INDEXER_TAB_NAME ? cursorPosition : { lineNumber: 1, column: 1 }); + editor.focus(); + monaco.languages.typescript.typescriptDefaults.addExtraLib( `${primitives}}`, 'file:///node_modules/@near-lake/primitives/index.d.ts', ); + monaco.languages.typescript.typescriptDefaults.setCompilerOptions({ + target: monaco.languages.typescript.ScriptTarget.ES2016, + allowNonTsExtensions: true, + moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs, + }); + setMonacoMount(true); }; @@ -337,18 +319,16 @@ const Editor: React.FC = (): ReactElement => { const handleOnChangeSchema = (_schema: string) => { setSchema(_schema); + storageManager?.setSchemaCode(schema); debouncedValidateSQLSchema(_schema); }; const handleOnChangeCode = (_code: string) => { setIndexingCode(_code); + storageManager?.setIndexerCode(indexingCode); debouncedValidateCode(_code); }; - const handleRegisterIndexerWithErrors = (args: any) => { - request('register-function', args); - }; - return ( <>
{ isUserIndexer={indexerDetails.accountId === currentUserAccountId} handleDeleteIndexer={handleDeleteIndexer} isCreateNewIndexer={isCreateNewIndexer} - error={error} + schemaError={schemaError} //Fork Indexer Modal indexingCode={indexingCode} setIndexingCode={setIndexingCode} @@ -381,12 +361,10 @@ const Editor: React.FC = (): ReactElement => { //Reset Indexer Modal setSchema={setSchema} setSchemaTypes={setSchemaTypes} - setOriginalIndexingCode={setOriginalIndexingCode} - setOriginalSQLCode={setOriginalSQLCode} //Publish Modal actionButtonText={'publish'} schema={schema} - setError={setError} + setSchemaError={setSchemaError} showModal={showModal} /> { height: '100%', }} > - {error && ( - setError(undefined)} - className="px-4 py-3 mb-4 font-semibold text-red-700 text-sm text-center border border-red-300 bg-red-50 rounded-lg shadow-md" - variant="danger" - > - {error} - - )} - {debugMode && !debugModeInfoDisabled && ( - setDebugModeInfoDisabled(true)} - variant="info" - > - To debug, you will need to open your browser console window in order to see the logs. - - )} - + {/* @ts-ignore remove after refactoring Resizable Editor to ts*/} { )}
- handleRegisterIndexerWithErrors(data)} - onCancelButtonPressed={hideModal} - onClose={hideModal} - /> ); }; -export default Editor; +export default React.memo(Editor); diff --git a/frontend/src/components/Editor/EditorComponents/FileSwitcher.jsx b/frontend/src/components/Editor/EditorComponents/FileSwitcher.jsx index 4f11341f9..265d90902 100644 --- a/frontend/src/components/Editor/EditorComponents/FileSwitcher.jsx +++ b/frontend/src/components/Editor/EditorComponents/FileSwitcher.jsx @@ -1,25 +1,48 @@ import React, { useContext } from 'react'; import { IndexerDetailsContext } from '@/contexts/IndexerDetailsContext'; +import AlertSquareIcon from '@/components/Common/Icons/AlertSquareIcon'; +import CheckMarkSquareIcon from '@/components/Common/Icons/CheckMarkSquareIcon'; -export function FileSwitcher({ fileName, setFileName }) { +import CustomTooltip, { TooltipDirection } from '@/components/Common/CustomTooltip'; +const IndexerErrorMessage = 'There was an error with the Indexer.'; + +export function FileSwitcher({ fileName, setFileName, schemaError, indexerError }) { const { isCreateNewIndexer } = useContext(IndexerDetailsContext); return ( -
+
{!isCreateNewIndexer && (
@@ -175,11 +189,6 @@ return ( - State.update({ - activeTab: "editor", - }) - } > View Indexer diff --git a/frontend/widgets/src/QueryApi.IndexerExplorer.jsx b/frontend/widgets/src/QueryApi.IndexerExplorer.jsx index 33148b448..1af68c70d 100644 --- a/frontend/widgets/src/QueryApi.IndexerExplorer.jsx +++ b/frontend/widgets/src/QueryApi.IndexerExplorer.jsx @@ -1,12 +1,31 @@ -const accountId = context.accountId; -const santizedAccountId = accountId.replaceAll(".", "_"); +const myAccountId = context.accountId; const [selectedTab, setSelectedTab] = useState(props.tab && props.tab !== "all" ? props.tab : "all"); const [myIndexers, setMyIndexers] = useState([]); const [allIndexers, setAllIndexers] = useState([]); const [error, setError] = useState(null); +const [indexerMetadata, setIndexerMetaData] = useState(new Map()); const fetchIndexerData = () => { + Near.asyncView(`${REPL_REGISTRY_CONTRACT_ID}`, "list_all").then((data) => { + const allIndexers = []; + const myIndexers = []; + Object.keys(data).forEach((accId) => { + Object.keys(data[accId]).forEach((functionName) => { + const indexer = { + accountId: accId, + indexerName: functionName, + }; + if (accId === myAccountId) myIndexers.push(indexer); + allIndexers.push(indexer); + }); + }); + setMyIndexers(myIndexers); + setAllIndexers(allIndexers); + }); +} + +const storeIndexerMetaData = () => { const url = `${REPL_QUERY_API_USAGE_URL}`; asyncFetch(url) @@ -16,12 +35,10 @@ const fetchIndexerData = () => { throw new Error(`HTTP error! status: ${response.status}`); } const { data } = JSON.parse(response.body); - const allIndexers = []; - const myIndexers = []; + const map = new Map(); data.forEach(entry => { const { indexer_account_id, indexers } = entry; - indexers.forEach(({ indexer_name, last_deployment_date, num_deployements, num_queries, original_deployment_date }) => { const indexer = { accountId: indexer_account_id, @@ -31,21 +48,17 @@ const fetchIndexerData = () => { numQueries: num_queries, originalDeploymentDate: original_deployment_date }; - - if (indexer_account_id === santizedAccountId) myIndexers.push(indexer); - allIndexers.push(indexer); + map.set(`${indexer_account_id}/${indexer_name}`, indexer); }); }); - - setMyIndexers([myIndexers]); - setAllIndexers(allIndexers); + setIndexerMetaData(map); setError(null); }) } - useEffect(() => { fetchIndexerData(); + storeIndexerMetaData(); }, []); const Wrapper = styled.div` @@ -243,7 +256,7 @@ return ( ))} @@ -271,7 +284,7 @@ return ( ))} From 27ac9a18da8e3a0cc2047b5f5f3b52b3526e6d47 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <42101107+Kevin101Zhang@users.noreply.github.com> Date: Wed, 17 Jul 2024 18:05:43 -0400 Subject: [PATCH 14/14] feat: added component, api route, for generate Dummycode (#892) --- frontend/package-lock.json | 438 +++++++++++++++++- frontend/package.json | 4 +- .../Editor/EditorComponents/GenerateCode.jsx | 72 +++ frontend/src/pages/api/generateCode.js | 71 +++ frontend/src/pages/query-api-editor/index.js | 7 + frontend/src/test/api/generateCode.test.js | 66 +++ 6 files changed, 654 insertions(+), 4 deletions(-) create mode 100644 frontend/src/components/Editor/EditorComponents/GenerateCode.jsx create mode 100644 frontend/src/pages/api/generateCode.js create mode 100644 frontend/src/test/api/generateCode.test.js diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 0d969b575..d3f4c4493 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -55,7 +55,9 @@ "eslint-plugin-react": "^7.32.0", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-simple-import-sort": "^12.1.0", - "jest": "^29.6.2", + "jest": "^29.7.0", + "node-mocks-http": "^1.15.0", + "supertest": "^7.0.0", "tailwindcss": "^3.0.21", "ts-jest": "^29.1.1", "typescript": "^5.1.6" @@ -3099,6 +3101,17 @@ "@babel/types": "^7.20.7" } }, + "node_modules/@types/body-parser": { + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", + "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, "node_modules/@types/codemirror": { "version": "5.60.15", "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-5.60.15.tgz", @@ -3108,6 +3121,16 @@ "@types/tern": "*" } }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/eslint": { "version": "8.56.10", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz", @@ -3136,6 +3159,32 @@ "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", "license": "MIT" }, + "node_modules/@types/express": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", + "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.19.5", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.5.tgz", + "integrity": "sha512-y6W03tvrACO72aijJ5uF02FRq5cgDR9lUxddQ8vyF+GvmjJQqbzDcJngEjURc+ZsG31VI3hODNZJ2URj86pzmg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, "node_modules/@types/graceful-fs": { "version": "4.1.9", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", @@ -3146,6 +3195,13 @@ "@types/node": "*" } }, + "node_modules/@types/http-errors": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", + "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", @@ -3197,6 +3253,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/node": { "version": "20.14.7", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.7.tgz", @@ -3218,6 +3281,20 @@ "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", "license": "MIT" }, + "node_modules/@types/qs": { + "version": "6.9.15", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz", + "integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/react": { "version": "18.3.3", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.3.tgz", @@ -3254,6 +3331,29 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/send": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", + "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.7", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", + "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "*" + } + }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", @@ -3764,6 +3864,20 @@ "license": "Apache-2.0", "peer": true }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/acorn": { "version": "8.12.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.0.tgz", @@ -4097,6 +4211,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true, + "license": "MIT" + }, "node_modules/ast-types-flow": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", @@ -4104,6 +4225,13 @@ "dev": true, "license": "MIT" }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, "node_modules/autoprefixer": { "version": "10.4.19", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.19.tgz", @@ -5013,6 +5141,19 @@ "dev": true, "license": "MIT" }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -5026,6 +5167,16 @@ "dev": true, "license": "MIT" }, + "node_modules/component-emitter": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -5033,6 +5184,19 @@ "dev": true, "license": "MIT" }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -5040,6 +5204,13 @@ "dev": true, "license": "MIT" }, + "node_modules/cookiejar": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", + "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", + "dev": true, + "license": "MIT" + }, "node_modules/copy-to-clipboard": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz", @@ -5381,6 +5552,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -5415,6 +5596,17 @@ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==", "license": "MIT" }, + "node_modules/dezalgo": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", + "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", + "dev": true, + "license": "ISC", + "dependencies": { + "asap": "^2.0.0", + "wrappy": "1" + } + }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -6675,6 +6867,13 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true, + "license": "MIT" + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", @@ -6802,6 +7001,36 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/formidable": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.1.tgz", + "integrity": "sha512-WJWKelbRHN41m5dumb0/k8TeAx7Id/y3a+Z7QfhxP/htI9Js5zYaEDtG8uMgG0vM0lOlqnmjE99/kfpOYi/0Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "dezalgo": "^1.0.4", + "hexoid": "^1.0.0", + "once": "^1.4.0" + }, + "funding": { + "url": "https://ko-fi.com/tunnckoCore/commissions" + } + }, "node_modules/fraction.js": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", @@ -6846,6 +7075,16 @@ "tslib": "^2.1.0" } }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -7322,6 +7561,16 @@ "node": ">= 0.4" } }, + "node_modules/hexoid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", + "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/hey-listen": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/hey-listen/-/hey-listen-1.0.8.tgz", @@ -10307,6 +10556,26 @@ "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", "license": "MIT" }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -10340,6 +10609,16 @@ } } }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/micromatch": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", @@ -10354,12 +10633,24 @@ "node": ">=8.6" } }, + "node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" } @@ -10369,7 +10660,6 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "license": "MIT", - "peer": true, "dependencies": { "mime-db": "1.52.0" }, @@ -10554,6 +10844,16 @@ "url": "https://nearley.js.org/#give-to-nearley" } }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", @@ -10666,6 +10966,53 @@ "dev": true, "license": "MIT" }, + "node_modules/node-mocks-http": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/node-mocks-http/-/node-mocks-http-1.15.0.tgz", + "integrity": "sha512-3orGBAxXrnwz3ixU8AZpa0x8srAvVSHvbWanAqd5F0zVCVA2QstxaVcTSarFcjz4+pFSnR1zm28MsV83s/BtmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/express": "^4.17.21", + "@types/node": "^20.10.6", + "accepts": "^1.3.7", + "content-disposition": "^0.5.3", + "depd": "^1.1.0", + "fresh": "^0.5.2", + "merge-descriptors": "^1.0.1", + "methods": "^1.1.2", + "mime": "^1.3.4", + "parseurl": "^1.3.3", + "range-parser": "^1.2.0", + "type-is": "^1.6.18" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/node-mocks-http/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-mocks-http/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true, + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/node-releases": { "version": "2.0.14", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", @@ -11035,6 +11382,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -11570,6 +11927,22 @@ ], "license": "MIT" }, + "node_modules/qs": { + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.3.tgz", + "integrity": "sha512-AWJm14H1vVaO/iNZ4/hO+HyaTehuy9nRqVdkTqlJt0HWvBiBIEXFmb4C0DGeYo3Xes9rrEW+TxHsaigCbN5ICQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -11620,6 +11993,16 @@ "safe-buffer": "^5.1.0" } }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/raw-loader": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-4.0.2.tgz", @@ -12811,6 +13194,41 @@ "node": ">= 6" } }, + "node_modules/superagent": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-9.0.2.tgz", + "integrity": "sha512-xuW7dzkUpcJq7QnhOsnNUgtYp3xRwpt2F7abdRYIpCsAt0hhUqia0EdxyXZQQpNmGtsCzYHryaKSV3q3GJnq7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "component-emitter": "^1.3.0", + "cookiejar": "^2.1.4", + "debug": "^4.3.4", + "fast-safe-stringify": "^2.1.1", + "form-data": "^4.0.0", + "formidable": "^3.5.1", + "methods": "^1.1.2", + "mime": "2.6.0", + "qs": "^6.11.0" + }, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/supertest": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/supertest/-/supertest-7.0.0.tgz", + "integrity": "sha512-qlsr7fIC0lSddmA3tzojvzubYxvlGtzumcdHgPwbFWMISQwL22MhM2Y3LNt+6w9Yyx7559VW5ab70dgphm8qQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "methods": "^1.1.2", + "superagent": "^9.0.1" + }, + "engines": { + "node": ">=14.18.0" + } + }, "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -13298,6 +13716,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/typed-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", diff --git a/frontend/package.json b/frontend/package.json index 88a32199e..98e5c4e1c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -66,7 +66,9 @@ "eslint-plugin-react": "^7.32.0", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-simple-import-sort": "^12.1.0", - "jest": "^29.6.2", + "jest": "^29.7.0", + "node-mocks-http": "^1.15.0", + "supertest": "^7.0.0", "tailwindcss": "^3.0.21", "ts-jest": "^29.1.1", "typescript": "^5.1.6" diff --git a/frontend/src/components/Editor/EditorComponents/GenerateCode.jsx b/frontend/src/components/Editor/EditorComponents/GenerateCode.jsx new file mode 100644 index 000000000..c83d8bcd8 --- /dev/null +++ b/frontend/src/components/Editor/EditorComponents/GenerateCode.jsx @@ -0,0 +1,72 @@ +//Dummy Component to generate code accessable accountId=test and indexerName=test and +import { useState } from 'react'; + +const GenerateCode = () => { + const [contractFilter, setContractFilter] = useState(''); + const [selectedMethods, setSelectedMethods] = useState([]); + const [selectedEvents, setSelectedEvents] = useState([]); + const [generatedCode, setGeneratedCode] = useState({ jsCode: '', sqlCode: '' }); + + const handleGenerateCode = async () => { + const response = await fetch('/api/generateCode', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ contractFilter, selectedMethods, selectedEvents }), + }); + const data = await response.json(); + setGeneratedCode(data); + }; + + return ( +
+
+

Generate Code

+
+ setContractFilter(e.target.value)} + className="w-full p-3 border border-gray-300 rounded-md" + /> +
+
+ setSelectedMethods(e.target.value.split(','))} + className="w-full p-3 border border-gray-300 rounded-md" + /> +
+
+ setSelectedEvents(e.target.value.split(','))} + className="w-full p-3 border border-gray-300 rounded-md" + /> +
+ +
+

Generated JavaScript Code

+
{generatedCode.jsCode}
+
+
+

Generated SQL Code

+
{generatedCode.sqlCode}
+
+
+
+ ); +}; + +export default GenerateCode; diff --git a/frontend/src/pages/api/generateCode.js b/frontend/src/pages/api/generateCode.js new file mode 100644 index 000000000..44d121ce1 --- /dev/null +++ b/frontend/src/pages/api/generateCode.js @@ -0,0 +1,71 @@ +import { defaultCode, defaultSchema, } from '../../utils/formatters'; + +export default function handler(req, res) { + res.setHeader('Access-Control-Allow-Origin', '*'); + res.setHeader('Access-Control-Allow-Methods', 'POST'); + res.setHeader('Access-Control-Allow-Headers', 'Content-Type'); + + if (req.method === 'OPTIONS') { + res.status(200).end(); + return; + } + + const { contractFilter, selectedMethods, selectedEvents } = req.body; + + if (!contractFilter || !selectedMethods || !selectedEvents) { + return res.status(400).json({ error: 'Missing required fields' }); + } + + if (!Array.isArray(selectedMethods) || !Array.isArray(selectedEvents)) { + return res.status(400).json({ error: 'selectedMethods and selectedEvents must be arrays' }); + } + + const jsCode = generateDummyJSCode(contractFilter, selectedMethods, selectedEvents); + const sqlCode = generateDummySQLCode(contractFilter, selectedMethods, selectedEvents); + + res.status(200).json({ jsCode, sqlCode }); +} + +function generateDummyJSCode(contractFilter, selectedMethods, selectedEvents) { + let jsCode = `// JavaScript Code\n\n`; + jsCode += `-- Contract Filter: ${contractFilter}\n\n`; + jsCode += `-- Selected Methods: ${selectedMethods}\n\n`; + jsCode += `-- Selected Events: ${selectedEvents}\n\n`; + + jsCode += defaultCode; + + selectedMethods.forEach(method => { + jsCode += `function ${method}() {\n`; + jsCode += ` console.log('Executing ${method}');\n`; + jsCode += `}\n\n`; + }); + + selectedEvents.forEach(event => { + jsCode += `function handle${event}() {\n`; + jsCode += ` console.log('Handling event ${event}');\n`; + jsCode += `}\n\n`; + }); + + return jsCode; +} + +function generateDummySQLCode(contractFilter, selectedMethods, selectedEvents) { + let sqlCode = `-- SQL Code\n\n`; + sqlCode += `-- Contract Filter: ${contractFilter}\n\n`; + sqlCode += `-- Selected Methods: ${selectedMethods}\n\n`; + sqlCode += `-- Selected Events: ${selectedEvents}\n\n`; + + sqlCode += defaultSchema; + + selectedMethods.forEach(method => { + sqlCode += `-- Method: ${method}\n`; + sqlCode += `INSERT INTO methods (name) VALUES ('${method}');\n\n`; + }); + + selectedEvents.forEach(event => { + sqlCode += `-- Event: ${event}\n`; + sqlCode += `INSERT INTO events (name) VALUES ('${event}');\n\n`; + }); + + return sqlCode; +} diff --git a/frontend/src/pages/query-api-editor/index.js b/frontend/src/pages/query-api-editor/index.js index 603bf5148..32e2d2d19 100644 --- a/frontend/src/pages/query-api-editor/index.js +++ b/frontend/src/pages/query-api-editor/index.js @@ -5,6 +5,7 @@ import { Alert } from 'react-bootstrap'; import Editor from '@/components/Editor/EditorComponents/Editor'; import IndexerLogsContainer from '@/components/Logs/LogsViewContainer/IndexerLogsContainer'; import { IndexerDetailsContext } from '@/contexts/IndexerDetailsContext'; +import GenerateCode from '@/components/Editor/EditorComponents/GenerateCode'; const QueryApiEditorPage = ({ router }) => { const { accountId, indexerName } = router.query; @@ -24,6 +25,12 @@ const QueryApiEditorPage = ({ router }) => { ); } + if (accountId == 'test' || indexerName == 'test') { + return ( + + ); + } + return showLogsView ? : ; }; diff --git a/frontend/src/test/api/generateCode.test.js b/frontend/src/test/api/generateCode.test.js new file mode 100644 index 000000000..ff3156f02 --- /dev/null +++ b/frontend/src/test/api/generateCode.test.js @@ -0,0 +1,66 @@ +import handler from '../../pages/api/generateCode'; +import { createMocks } from 'node-mocks-http'; + +jest.mock('../../utils/formatters', () => ({ + defaultCode: '// Default JS Code', + defaultSchema: '-- Default SQL Schema', +})); + +describe('API Handler', () => { + it('should return generated JS and SQL code for valid input', async () => { + const { req, res } = createMocks({ + method: 'POST', + body: { + contractFilter: 'filter', + selectedMethods: ['method1', 'method2'], + selectedEvents: ['event1', 'event2'], + }, + }); + + await handler(req, res); + + expect(res._getStatusCode()).toBe(200); + }); + + it('should return 400 if required fields are missing', async () => { + const { req, res } = createMocks({ + method: 'POST', + body: {}, + }); + + await handler(req, res); + + expect(res._getStatusCode()).toBe(400); + expect(JSON.parse(res._getData())).toEqual({ error: 'Missing required fields' }); + }); + + it('should return 400 if selectedMethods or selectedEvents are not arrays', async () => { + const { req, res } = createMocks({ + method: 'POST', + body: { + contractFilter: 'filter', + selectedMethods: 'not-an-array', + selectedEvents: [], + }, + }); + + await handler(req, res); + + expect(res._getStatusCode()).toBe(400); + expect(JSON.parse(res._getData())).toEqual({ error: 'selectedMethods and selectedEvents must be arrays' }); + + const { req: req2, res: res2 } = createMocks({ + method: 'POST', + body: { + contractFilter: 'filter', + selectedMethods: [], + selectedEvents: 'not-an-array', + }, + }); + + await handler(req2, res2); + + expect(res2._getStatusCode()).toBe(400); + expect(JSON.parse(res2._getData())).toEqual({ error: 'selectedMethods and selectedEvents must be arrays' }); + }); +});