We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
name
#[Object]
The presence of a struct called name should not break #[Object] macro.
#[Object] macro breaks under the presence of a struct called name.
use async_graphql::Object; struct name; // remove to fix error pub struct Query; #[Object] // mismatched types expected `Name`, found `name` impl Query { ... }
This seems like a very niche issue, but with diesel, you often need to import structs generated and named from your database columns. Like this:
diesel
use schema::users::dsl::{name /* <- this is a struct */, username};
Is there a workaround to this, other than refactoring your database?
v7.0.9
Linux
NixOS 24.11
The text was updated successfully, but these errors were encountered:
995f9e5
fixed in v7.0.11
v7.0.11
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
The presence of a struct called
name
should not break#[Object]
macro.Actual Behavior
#[Object]
macro breaks under the presence of a struct calledname
.Steps to Reproduce the Problem
This seems like a very niche issue, but with
diesel
, you often need to import structs generated and named from your database columns. Like this:Is there a workaround to this, other than refactoring your database?
Specifications
v7.0.9
Linux
NixOS 24.11
The text was updated successfully, but these errors were encountered: