From 63ac08a92870fbc1ab8cdc3ca6ae64e5bc55ed58 Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Mon, 5 Jun 2023 13:31:45 +0300
Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20bs?=
 =?UTF-8?q?onx.Doc=20=D0=BD=D0=B0=20bson.D=20=D0=B2=20=D1=84=D0=B0=D0=B9?=
 =?UTF-8?q?=D0=BB=D0=B5=20location.go?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pkg/schema/field/location.go | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pkg/schema/field/location.go b/pkg/schema/field/location.go
index eb6e1755..d89b3206 100644
--- a/pkg/schema/field/location.go
+++ b/pkg/schema/field/location.go
@@ -8,7 +8,6 @@ import (
 	"go.mongodb.org/mongo-driver/bson"
 	"go.mongodb.org/mongo-driver/mongo"
 	"go.mongodb.org/mongo-driver/mongo/options"
-	"go.mongodb.org/mongo-driver/x/bsonx"
 )
 
 var locationType = &LocationType{}
@@ -32,8 +31,8 @@ func (p LocationParameters) GetMongoIndexes(path string, f *Field) []mongo.Index
 	}
 
 	if f.Indexed {
-		add.Keys = bsonx.Doc{{Key: a, Value: bsonx.Int32(1)}}
-		geo.Keys = bsonx.Doc{{Key: g, Value: bsonx.String("2dsphere")}}
+		add.Keys = bson.D{{Key: a, Value: 1}}
+		geo.Keys = bson.D{{Key: g, Value: "2dsphere"}}
 	}
 	return []mongo.IndexModel{add, geo}
 }
-- 
GitLab