I am working on embedded array of objects with relationship

The array was auto sorted when I query it using graphql. But I just want the proper order of it.

this is the screenshot of the order of the array inside the collection
image

This is the result when I query it the order of the array changed

Any Update On this ?

I solve this using custom resolver and adding a seperated schema as a bridge table for many to many ralationship of the two objects also I put position of the array in the seperated schema. Then on the custom resolver I sorted it base on the position. So when you query it the position of the array will remain the same it will not be affected by the autosorting of the mongodb realm graphql query.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.