Skip to content

Commit b94c659

Browse files
committed
added parse_introspection_from_string
bump 0.0.19
1 parent 79795c1 commit b94c659

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "graphql-tools"
3-
version = "0.0.18"
3+
version = "0.0.19"
44
edition = "2021"
55
description = "Tools for working with GraphQL in Rust, based on graphql-parser Document."
66
license = "MIT/Apache-2.0"

src/introspection/introspection.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ pub struct IntrospectionDirective {
225225
pub args: Vec<IntrospectionInputValue>,
226226
}
227227

228+
pub fn parse_introspection_from_string(input: &str) -> Result<IntrospectionQuery> {
229+
serde_json::from_str(input)
230+
}
231+
228232
pub fn parse_introspection<R>(input: R) -> Result<IntrospectionQuery>
229233
where
230234
R: io::Read,

0 commit comments

Comments
 (0)