Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

PHPLIB-1340 Remove Projection Operators #54

Merged
merged 3 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions generator/config/definitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,4 @@
OperatorTestGenerator::class,
],
],

// Projection Operators
[
'configFiles' => __DIR__ . '/projection',
'namespace' => 'MongoDB\\Builder\\Projection',
'classNameSuffix' => 'Operator',
'generators' => [
OperatorClassGenerator::class,
OperatorFactoryGenerator::class,
OperatorTestGenerator::class,
],
],
];
1 change: 0 additions & 1 deletion generator/config/expression/slice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: $slice
link: 'https://www.mongodb.com/docs/manual/reference/operator/aggregation/slice/'
type:
- resolvesToArray
- projection
encode: array
description: |
Returns a subset of an array.
Expand Down
4 changes: 0 additions & 4 deletions generator/config/expressions.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@
'returnType' => Type\QueryInterface::class,
'acceptedTypes' => [Type\QueryInterface::class, 'array'],
],
'projection' => [
'returnType' => Type\ProjectionInterface::class,
'acceptedTypes' => [Type\ProjectionInterface::class, ...$bsonTypes['object']],
],
'accumulator' => [
'returnType' => Type\AccumulatorInterface::class,
'acceptedTypes' => [Type\AccumulatorInterface::class, ...$bsonTypes['object']],
Expand Down
13 changes: 0 additions & 13 deletions generator/config/projection/elemMatch.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions generator/config/projection/filter.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions generator/config/projection/slice.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions generator/config/query/natural.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions generator/config/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"type": "string",
"enum": [
"accumulator",
"projection",
"stage",
"query",
"fieldQuery",
Expand Down Expand Up @@ -113,7 +112,6 @@
"window",
"expression",
"geometry",
"projection",
"fieldPath",
"any",
"resolvesToNumber", "numberFieldPath", "number",
Expand Down
1 change: 0 additions & 1 deletion generator/config/stage/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ arguments:
name: specification
type:
- expression
- projection
variadic: object
3 changes: 1 addition & 2 deletions src/Builder/Expression/SliceOperator.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions src/Builder/Projection/FactoryTrait.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 0 additions & 76 deletions src/Builder/Projection/FilterOperator.php

This file was deleted.

44 changes: 0 additions & 44 deletions src/Builder/Projection/SliceOperator.php

This file was deleted.

10 changes: 0 additions & 10 deletions src/Builder/Query/FactoryTrait.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 0 additions & 32 deletions src/Builder/Query/NaturalOperator.php

This file was deleted.

5 changes: 2 additions & 3 deletions src/Builder/Stage/FactoryTrait.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading