diff --git a/Cargo.toml b/Cargo.toml index 1c2330a5..c2bd5b5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ indexmap = "1.3.2" async-stream = "0.2.1" multer = "1.2.0" log = "0.4.8" -bson = { version = "0.14.1", optional = true } +bson = { version = "0.15.0", optional = true } uuid = { version = "0.8.1", features = ["v4"] } url = { version = "2.1.1", optional = true } chrono-tz = { version = "0.5.1", optional = true } diff --git a/src/scalars/bson.rs b/src/scalars/bson.rs index 366e67fc..7bf7e59e 100644 --- a/src/scalars/bson.rs +++ b/src/scalars/bson.rs @@ -1,6 +1,6 @@ use crate::{InputValueError, InputValueResult, ScalarType, Value}; use async_graphql_derive::Scalar; -use bson::{oid::ObjectId, UtcDateTime}; +use bson::{oid::ObjectId, DateTime as UtcDateTime}; use chrono::{DateTime, Utc}; #[Scalar(internal)]