Skip to content

Commit

Permalink
update to use crate libs
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis committed Oct 8, 2022
1 parent 71086e9 commit 7a9eb9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions derive/src/root_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub fn cursor_query(name: &Ident, path: &TokenStream) -> TokenStream {
) -> async_graphql::types::connection::Connection<String, #path::Model, async_graphql::types::connection::EmptyFields, async_graphql::types::connection::EmptyFields> {
use sea_orm::prelude::*;
use sea_orm::Iterable;
use itertools::Itertools;
use seaography::itertools::Itertools;
use async_graphql::types::connection::CursorType;

println!("cursor_filters: {:?}", filters);
Expand Down Expand Up @@ -291,7 +291,7 @@ pub fn cursor_dependencies() -> TokenStream {
}

pub fn map_cursor_values(values: Vec<sea_orm::Value>) -> sea_orm::sea_query::value::ValueTuple {
use itertools::Itertools;
use seaography::itertools::Itertools;

if values.len() == 1 {
sea_orm::sea_query::value::ValueTuple::One(values[0].clone())
Expand Down Expand Up @@ -445,7 +445,7 @@ pub fn cursor_dependencies() -> TokenStream {
}

fn encode_cursor(&self) -> String {
use itertools::Itertools;
use seaography::itertools::Itertools;

self.0.iter().map(|value| -> String {
match value {
Expand Down

0 comments on commit 7a9eb9c

Please sign in to comment.