Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Nov 11, 2024
1 parent ea161f2 commit 56bfe0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sui-graphql-client-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
/// }
/// ```
pub fn register_schema(schema_name: &str) {
let sdl = include_bytes!("../schema.graphql");
let sdl = include_str!("../schema.graphql");
cynic_codegen::register_schema(schema_name)
.from_sdl(std::str::from_utf8(sdl).unwrap())
.from_sdl(sdl)
.expect("Failed to find GraphQL Schema")
.as_default()
.unwrap();
Expand Down

0 comments on commit 56bfe0b

Please sign in to comment.