Skip to content

Commit

Permalink
Add test for camel case model field
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Jan 9, 2024
1 parent 674a95a commit c1ac18f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/torii/graphql/src/tests/models_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,21 @@ mod tests {
let connection: Connection<Record> = serde_json::from_value(records).unwrap();
assert_eq!(connection.edges.len(), 0);

let query = r#"
{{
recordSiblingModels {{
edges {{
cursor
node {{
__typename
}}
}}
}}
}}
"#;
let result = run_graphql_query(&schema, query).await;
assert!(result.get("recordSiblingsModels").is_some());

Ok(())
}
}

0 comments on commit c1ac18f

Please sign in to comment.