fixing ordering checkpoint

This commit is contained in:
2026-05-14 03:21:12 -04:00
parent 3d918a1acc
commit 3034406706
14 changed files with 89 additions and 85 deletions

View File

@ -1,5 +1,6 @@
use crate::database::Database;
use std::sync::Arc;
use indexmap::IndexMap;
pub struct Compiler<'a> {
pub db: &'a Database,
@ -256,7 +257,7 @@ impl<'a> Compiler<'a> {
fn compile_object(
&mut self,
props: &std::collections::BTreeMap<String, std::sync::Arc<crate::database::schema::Schema>>,
props: &IndexMap<String, std::sync::Arc<crate::database::schema::Schema>>,
node: Node<'a>,
) -> Result<(String, String), String> {
let mut build_args = Vec::new();
@ -417,7 +418,7 @@ impl<'a> Compiler<'a> {
) -> Result<Vec<String>, String> {
let mut select_args = Vec::new();
let grouped_fields = r#type.grouped_fields.as_ref().and_then(|v| v.as_object());
let default_props = std::collections::BTreeMap::new();
let default_props = IndexMap::new();
let merged_props = node
.schema
.obj