Upgrade graphql-parser to 0.4 version (#998)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Solovyiov <ilya.solovyiov@gmail.com>
This commit is contained in:
dependabot[bot] 2021-11-30 10:50:09 +02:00 committed by GitHub
parent acde85a814
commit 811c90486d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View file

@ -42,7 +42,7 @@ chrono-tz = { version = "0.6", default-features = false, optional = true }
fnv = "1.0.3" fnv = "1.0.3"
futures = { version = "0.3.1", features = ["alloc"], default-features = false } futures = { version = "0.3.1", features = ["alloc"], default-features = false }
futures-enum = { version = "0.1.12", 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"] } indexmap = { version = "1.0", features = ["serde-1"] }
serde = { version = "1.0.8", features = ["derive"], default-features = false } serde = { version = "1.0.8", features = ["derive"], default-features = false }
serde_json = { version = "1.0.2", default-features = false, optional = true } serde_json = { version = "1.0.2", default-features = false, optional = true }

View file

@ -1,8 +1,5 @@
use crate::{ use crate::{
ast::{ ast::{Arguments, Definition, Field, Operation, OperationType, OwnedDocument, Selection},
Arguments, Definition, Field, InputValue, Operation, OperationType, OwnedDocument,
Selection,
},
graphql_input_value, graphql_input_value,
parser::{document::parse_document_source, ParseError, SourcePosition, Spanning, Token}, parser::{document::parse_document_source, ParseError, SourcePosition, Spanning, Token},
schema::model::SchemaType, schema::model::SchemaType,

View file

@ -190,6 +190,8 @@ impl GraphQLParserTranslator {
position: Pos::default(), position: Pos::default(),
description: x.description.as_ref().map(|s| From::from(s.as_str())), description: x.description.as_ref().map(|s| From::from(s.as_str())),
name: From::from(x.name.as_ref()), name: From::from(x.name.as_ref()),
// TODO: Support this with GraphQL October 2021 Edition.
implements_interfaces: vec![],
directives: vec![], directives: vec![],
fields: x fields: x
.fields .fields