Skip to content

Commit

Permalink
Upgrade graphql-parser to 0.4 version (#998)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Solovyiov <[email protected]>
  • Loading branch information
dependabot[bot] and ilslv authored Nov 30, 2021
1 parent acde85a commit 811c904
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion juniper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ chrono-tz = { version = "0.6", default-features = false, optional = true }
fnv = "1.0.3"
futures = { version = "0.3.1", features = ["alloc"], default-features = false }
futures-enum = { version = "0.1.12", default-features = false }
graphql-parser = { version = "0.3", optional = true }
graphql-parser = { version = "0.4", optional = true }
indexmap = { version = "1.0", features = ["serde-1"] }
serde = { version = "1.0.8", features = ["derive"], default-features = false }
serde_json = { version = "1.0.2", default-features = false, optional = true }
Expand Down
5 changes: 1 addition & 4 deletions juniper/src/parser/tests/document.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use crate::{
ast::{
Arguments, Definition, Field, InputValue, Operation, OperationType, OwnedDocument,
Selection,
},
ast::{Arguments, Definition, Field, Operation, OperationType, OwnedDocument, Selection},
graphql_input_value,
parser::{document::parse_document_source, ParseError, SourcePosition, Spanning, Token},
schema::model::SchemaType,
Expand Down
2 changes: 2 additions & 0 deletions juniper/src/schema/translate/graphql_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ impl GraphQLParserTranslator {
position: Pos::default(),
description: x.description.as_ref().map(|s| From::from(s.as_str())),
name: From::from(x.name.as_ref()),
// TODO: Support this with GraphQL October 2021 Edition.
implements_interfaces: vec![],
directives: vec![],
fields: x
.fields
Expand Down

0 comments on commit 811c904

Please sign in to comment.