Does Lambda Query results preserve order?

If I order my results in the lambda script before returning, will that order be preserved? I feel like they should be, but I want a hard confirmation before doing a lot of work down that road.

Since I can’t order parent objects by nested children with what is generated natively. I believe I can do a custom query when needed for a few use cases to do ordering in a script.

I believe you are ordering lists. Then yes, the order should be preserved. JSON parsers are supposed to be preserving the order. So, it must work. The GraphQL spec requires JSON reader/writer parsers to preserve the order in lists. And lambdas travel over HTTP in JSON, so should work.

Quoting your own quote :smile: :