15 lines
213 B
Rust
15 lines
213 B
Rust
|
use juniper::{GraphQLInterface, GraphQLObject};
|
||
|
|
||
|
#[derive(GraphQLObject)]
|
||
|
pub struct ObjA {
|
||
|
id: String,
|
||
|
}
|
||
|
|
||
|
#[derive(GraphQLInterface)]
|
||
|
#[graphql(for = ObjA)]
|
||
|
struct Character {
|
||
|
id: String,
|
||
|
}
|
||
|
|
||
|
fn main() {}
|