Skip to content

[ CRUD service ] - Read #478

Discussion options

You must be logged in to vote

Hi @georgev-97

The CRUD service performs operations over documents having the proper metadata fields (__STATE__ is the one only mandatory).

If it's possible, you should make your services insert your records through the create endpoints provided by CRUD itself, to support the proper metadata.

If you can't edit the services to switch from MongoDB driver to crud service HTTP calls, you can expose these collections by using the MongoDB Views definition provided by the console.

Let's suppose you have a collection named test-coll with a field named test, that is populated by external services.

Then, you can create a MongoDB view named test-view using the same fields (using the import/export f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@georgev-97
Comment options

Answer selected by georgev-97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
CRUD Service Any question related to Mia Platform CRUD Service
2 participants