# Discover schema form mongodb to Trino

**URL:** <https://www.starburst.io/community/forum/t/discover-schema-form-mongodb-to-trino/245>\
**Category:** Trino\
**Tags:** mongodb\
**Created:** [March 14, 2023, 10:06am UTC](https://www.starburst.io/community/forum/t/discover-schema-form-mongodb-to-trino/245 "2023-03-14T10:06:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanHernanaz](https://www.starburst.io/community/forum/letter_avatar_proxy/v4/letter/i/e480ec/32.png) [@IvanHernanaz](https://www.starburst.io/community/forum/u/IvanHernanaz)\
**Post date:** [March 14, 2023, 10:06am UTC](https://www.starburst.io/community/forum/t/discover-schema-form-mongodb-to-trino/245/1 "2023-03-14T10:06:32Z")

</div>

Hello,

We have a database in mongodb whose collections have arrays of objects (JSON), arrays of ObjectIds and their fields of ObjecIid´s.

**When we connect Mongodb with Trino all those fields are not recognized.**

How could we help to recognize the scheme of these collections?

The version of Trino server and client is 410 and the version of Mongodb is 5.3

Can you show an example of how to solve this problem?

thank you so much

---

<div class="post-metadata">

**Author:** ![cole](https://www.starburst.io/community/forum/user_avatar/www.starburst.io/cole/32/173_2.png) [@cole](https://www.starburst.io/community/forum/u/cole)\
**Post date:** [July 26, 2023, 11:12pm UTC](https://www.starburst.io/community/forum/t/discover-schema-form-mongodb-to-trino/245/2 "2023-07-26T23:12:00Z")

</div>

You may need to configure the schema manually - see [MongoDB connector — Trino 422 Documentation](https://trino.io/docs/current/connector/mongodb.html#table-definition). Trino does support mapping MongoDB arrays to the Trino ARRAY type.
