SERVER-139549Needs Scheduling

Add query knobs to disable type inference

Add two query knobs which would toggle type inference for a query: * Disable the schema type use for the query (ExpCtx::getSchemaTypeForNss)     Makes the schema type be treated as any. * disable the pipeline type use for the query (disables $match narrowing / branch on forEachPossiblyNarrowingStage, and in the future also computed field type info)     Makes the $match type narrowing not apply in the graph. The arrayness we had before the type inference project should still be encoded

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.