Skip to content

Documentation: When are type aliases required? #320

Closed
@cryslith

Description

@cryslith

For instance, the github example requires type URI = String; or else a rather cryptic error like

error[E0412]: cannot find type `URI` in module `super`
   |
   | #[derive(GraphQLQuery)]
   |          ^^^^^^^^^^^^ not found in `super`
   |
   = note: possible candidate is found in another module, you can import it into scope:
           crate::repo_view::URI

is raised at compile time. It would be nice if the documentation mentioned this error message somewhere and explained how to solve it by defining an appropriate type alias.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions