Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Mar 24, 2023
1 parent 9f804cc commit bce2b07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions aquadoggo/src/graphql/queries/all_documents.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

use async_graphql::dynamic::{
Field, FieldFuture, FieldValue, InputValue, Object, TypeRef,
};
use async_graphql::dynamic::{Field, FieldFuture, FieldValue, InputValue, Object, TypeRef};
use async_graphql::Error;
use log::debug;
use p2panda_rs::schema::Schema;
Expand Down
2 changes: 1 addition & 1 deletion aquadoggo/src/graphql/queries/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn build_document_query(query: Object, schema: &Schema) -> Object {
// Validate the received arguments.
let (document_id, document_view_id) = validate_args(&ctx)?;
let store = ctx.data_unchecked::<SqlStore>();

// Get the whole document from the store.
let document =
match get_document_from_params(store, &document_id, &document_view_id)
Expand Down
4 changes: 2 additions & 2 deletions aquadoggo/src/graphql/types/filter_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use async_graphql::dynamic::{InputObject, InputValue, TypeRef};
use dynamic_graphql::InputObject;
use p2panda_rs::schema::Schema;

use crate::graphql::utils::filter_name;
use crate::graphql::types::BooleanFilter;
use crate::graphql::utils::filter_name;

use super::filters::OwnerFilter;

Expand Down Expand Up @@ -74,5 +74,5 @@ impl FilterInput {
pub struct MetaFilterInput {
owner: Option<OwnerFilter>,
edited: Option<BooleanFilter>,
deleted: Option<BooleanFilter>
deleted: Option<BooleanFilter>,
}
4 changes: 2 additions & 2 deletions aquadoggo/src/graphql/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ mod document_fields;
mod document_meta;
mod filter_input;
mod filters;
mod ordering;
mod next_arguments;
mod ordering;
mod paginated_response;

pub use document::{DocumentSchema, DocumentValue, PaginatedDocumentSchema};
Expand All @@ -19,4 +19,4 @@ pub use filters::{
};
pub use next_arguments::NextArguments;
pub use ordering::{OrderBy, OrderDirection};
pub use paginated_response::{PaginatedResponse, PaginationData};
pub use paginated_response::{PaginatedResponse, PaginationData};

0 comments on commit bce2b07

Please sign in to comment.