Skip to content

Commit

Permalink
Rename datacollection graph name
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Apr 17, 2024
1 parent 2df3f47 commit 68c5fd0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/datasets/charts/datasets/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ type: application

version: 0.1.0

appVersion: 0.1.0-rc2
appVersion: 0.1.0-rc3
2 changes: 1 addition & 1 deletion datasets/src/graphql/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use models::data_collection;

/// Represents data collected during the sessions
#[derive(Clone, Debug, PartialEq, SimpleObject)]
#[graphql(name = "Datasets", unresolvable)]
#[graphql(name = "DataCollection", unresolvable)]
pub struct DataCollection {
/// An opaque unique identifier for the data collection
pub id: u32,
Expand Down
5 changes: 4 additions & 1 deletion datasets/src/graphql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ pub struct Query;
#[ComplexObject]
impl Session {
/// Fetches all the data collected during a session
async fn datasets(&self, ctx: &Context<'_>) -> async_graphql::Result<Vec<DataCollection>> {
async fn data_collection(
&self,
ctx: &Context<'_>,
) -> async_graphql::Result<Vec<DataCollection>> {
let database = ctx.data::<DatabaseConnection>()?;
Ok(data_collection::Entity::find()
.filter(data_collection::Column::Sessionid.eq(self.id))
Expand Down

0 comments on commit 68c5fd0

Please sign in to comment.