Open
Description
Hi, I'm new to rust so sorry if this is just a newbie mistake.
I'm running into the following error:
error[E0107]: wrong number of type arguments: expected 1, found 0
--> src\main.rs:9:10
|
9 | #[derive(GraphQLQuery)]
| ^^^^^^^^^^^^ expected 1 type argument
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error
For more information about this error, try `rustc --explain E0107`.
main.rs:
#[derive(GraphQLQuery)]
#[graphql(
schema_path = "./src/comments_schema.graphql",
query_path = "./src/comments.graphql",
response_derives = "Debug"
)]
struct Comments;
comments.graphql
query Comments($assetId: ID, $assetUrl: String) {
asset(id: $assetId, url: $assetUrl) {
title
url
created_at
totalCommentCount
}
}
I also tried to run with -Z macro-backtrace
to see if I could get more info but doesn't seem to be a valid flag.
Thanks!