Error in $: Could not parse path 'foo.bar' with schema `SchemaScalar Int`: Bool True