near / data-platform

Near.org Data Platform Initiatives and Epics: Recommendations, Search, Analaytics
1 stars 0 forks source link

create a QueryAPI indexer that tracks developer information (total BOS components + joined date) #26

Closed roshaans closed 9 months ago

roshaans commented 10 months ago

We would like to retrieve some information for the new component detail redesign. We need to display when the user first became a BOS developer as well as the total number of components the developer has created

roshaans commented 10 months ago

This is the query I will make from the frontend.

query Query {
  dataplatform_near_developer_info(
    where: {widget_path: {_eq: "\"dataplatform.near\""}}
  ) {
    total_widgets
    join_date
  }
}

You may use this widget as a base called widget-activity-feed here.

eduohe commented 10 months ago

I forked the @roshaans 's component to: https://near.org/dataplatform.near/widget/QueryApi.App?selectedIndexerPath=eduohe.near/nearcon-2023-widget-activity-feed&view=editor-window

And asked @roshaans to review the GraphiQL queries below:

pkudinov commented 10 months ago

@bucanero please consider creating an article on how to use aggregations with QueryAPI GraphQL endpoints. Example could be posts per day or this widget activity widget.