Skip to content

Commit

Permalink
Merge pull request #26 from tacogips/fix_to_pr21
Browse files Browse the repository at this point in the history
minor changes which compensate #21
  • Loading branch information
tacogips authored Aug 7, 2023
2 parents 3a753a4 + ff36893 commit 384e248
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions examples/simple/input/reverse.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
default_data_source_fetch_method = "ctx.data_unchecked::<DataSource>()"
enum_rename_items = "camelCase"

# custom_member_types=["CustomPrimitiveType"]

[using]
data_source = "use crate::datasource::DataSource"

[default_setting]
enum_rename_items = "camelCase"


[[enum]]
target_enum = "UserType"
rename_items = "UPPERCASE"
Expand Down
8 changes: 7 additions & 1 deletion examples/simple/output/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#[allow(dead_code, clippy::clone_on_copy, clippy::too_many_arguments)]
#[allow(
dead_code,
non_camel_case_types,
clippy::upper_case_acronyms,
clippy::clone_on_copy,
clippy::too_many_arguments
)]
// DO NOT EDIT THIS FILE
// This file was generated by https://github.com/tacogips/async-graphql-reverse
mod objects;
Expand Down
2 changes: 1 addition & 1 deletion src/render/interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn interface_token(
.to_string()
.replace(" ", "");

let field_token = quote! {field(name = #field_name, type = #field_type )};
let field_token = quote! {field(name = #field_name, ty = #field_type )};
interface_field_tokens.push(field_token);

let mut dependencies = dependency(&interface_field.typ, schema, &context)?;
Expand Down

0 comments on commit 384e248

Please sign in to comment.