MongoDB file schema generation uses only the first object from the collection.

Description

MongoDB File schema generation currently uses only the first object from the collection, leading to incomplete data structure schemas and exceptions due to unknown attributes on filters.

See:
https://github.com/geotools/geotools/blob/9fbd02a320fa19d563972808d226a0a0445a5b13/modules/plugin/mongodb/src/main/java/org/geotools/data/mongodb/MongoInferredMapper.java#L83

Environment

None

Status

Assignee

Fernando Miño

Reporter

Fernando Miño

Triage

None

Components

Fix versions

Priority

Medium