Skip to content

Commit

Permalink
Make InMemory schema cloneable
Browse files Browse the repository at this point in the history
Summary: Making the `InMemory` schema cloneable - so that we can clone a parsed instance of the schema instead of parsing it from a file again.

Reviewed By: gary-z

Differential Revision: D47191015

fbshipit-source-id: c1469239e10a69f088799a44fdb53459011eb87c
  • Loading branch information
Arseniy Panfilov authored and facebook-github-bot committed Jul 6, 2023
1 parent a062e17 commit 1c8917b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/crates/schema/src/in_memory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn todo_add_location<T>(error: SchemaError) -> DiagnosticsResult<T> {
Err(vec![Diagnostic::error(error, Location::generated())])
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct InMemorySchema {
query_type: Option<ObjectID>,
mutation_type: Option<ObjectID>,
Expand Down

0 comments on commit 1c8917b

Please sign in to comment.