Skip to content

Commit 2b43e27

Browse files
GromNaNjmikola
andauthored
Review fixes
Co-authored-by: Jeremy Mikola <[email protected]>
1 parent 339b357 commit 2b43e27

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

generator/config/search/autocomplete.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ arguments:
2222
name: tokenOrder
2323
optional: true
2424
type:
25-
- string #tokenOrder
25+
- string # any|sequential
2626
-
2727
name: fuzzy
2828
optional: true

generator/config/search/compound.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# $schema: ../schema.json
22
name: compound
3-
link: 'https://www.mongodb.com/docs/atlas/atlas-search/equals/'
3+
link: 'https://www.mongodb.com/docs/atlas/atlas-search/compound/'
44
type:
55
- searchOperator
66
encode: object

generator/config/search/embeddedDocument.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# $schema: ../schema.json
22
name: embeddedDocument
3-
link: 'https://www.mongodb.com/docs/atlas/atlas-search/embeddedDocument/'
3+
link: 'https://www.mongodb.com/docs/atlas/atlas-search/embedded-document/'
44
type:
55
- searchOperator
66
encode: object

generator/config/search/exists.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# $schema: ../schema.json
22
name: exists
3-
link: 'https://www.mongodb.com/docs/atlas/atlas-search/equals/'
3+
link: 'https://www.mongodb.com/docs/atlas/atlas-search/exists/'
44
type:
55
- searchOperator
66
encode: object
77
description: |
8-
The equals operator checks whether a field matches a value you specify.
8+
The exists operator tests if a path to a specified indexed field name exists in a document.
99
arguments:
1010
-
1111
name: path

generator/config/search/facet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ arguments:
1111
-
1212
name: facets
1313
type:
14-
- object # of facetDefinition
14+
- object # map of facetDefinition
1515
-
1616
name: operator
1717
optional: true

generator/src/OperatorTestGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private function convertYamlTaggedValues(mixed $object): mixed
148148
'bson_utcdatetime' => new UTCDateTime(is_numeric($value) ? $value : new DateTimeImmutable($value)),
149149
'bson_binary' => new Binary(base64_decode($value)),
150150
'bson_objectId' => new ObjectId($value),
151-
'bson_uuid' => new Binary(pack('h*', str_replace('-', '', $value)), Binary::TYPE_UUID),
151+
'bson_uuid' => new Binary(bin2hex(str_replace('-', '', $value)), Binary::TYPE_UUID),
152152
default => throw new InvalidArgumentException(sprintf('Yaml tag "%s" is not supported.', $object->getTag())),
153153
};
154154
}

0 commit comments

Comments
 (0)